Skip to content

Commit 6e6b606

Browse files
committed
[AMDGPU] Simplify a nested !con. NFC.
1 parent 0ed696e commit 6e6b606

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

llvm/lib/Target/AMDGPU/FLATInstructions.td

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,13 @@ class FLAT_Load_Pseudo <string opName, RegisterClass regClass,
207207
opName,
208208
(outs vdata_op:$vdst),
209209
!con(
210-
!con(
211-
!if(EnableSaddr,
212-
(ins SReg_64_XEXEC_XNULL:$saddr, VGPR_32:$vaddr),
213-
(ins VReg_64:$vaddr)),
214-
(ins flat_offset:$offset)),
215-
// FIXME: Operands with default values do not work with following non-optional operands.
216-
!if(HasTiedOutput, (ins CPol:$cpol, vdata_op:$vdst_in),
217-
(ins CPol_0:$cpol))),
210+
!if(EnableSaddr,
211+
(ins SReg_64_XEXEC_XNULL:$saddr, VGPR_32:$vaddr),
212+
(ins VReg_64:$vaddr)),
213+
(ins flat_offset:$offset),
214+
// FIXME: Operands with default values do not work with following non-optional operands.
215+
!if(HasTiedOutput, (ins CPol:$cpol, vdata_op:$vdst_in),
216+
(ins CPol_0:$cpol))),
218217
" $vdst, $vaddr"#!if(HasSaddr, !if(EnableSaddr, ", $saddr", ", off"), "")#"$offset$cpol"> {
219218
let has_data = 0;
220219
let mayLoad = 1;

0 commit comments

Comments
 (0)