[llvm] 6e6b606 - [AMDGPU] Simplify a nested !con. NFC.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 03:50:17 PST 2024


Author: Jay Foad
Date: 2024-12-10T11:47:01Z
New Revision: 6e6b6060d6daf0173fa94189c30ab9529ce345ea

URL: https://github.com/llvm/llvm-project/commit/6e6b6060d6daf0173fa94189c30ab9529ce345ea
DIFF: https://github.com/llvm/llvm-project/commit/6e6b6060d6daf0173fa94189c30ab9529ce345ea.diff

LOG: [AMDGPU] Simplify a nested !con. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/FLATInstructions.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/FLATInstructions.td b/llvm/lib/Target/AMDGPU/FLATInstructions.td
index 72b13fd5f3695a..9244b4a6649861 100644
--- a/llvm/lib/Target/AMDGPU/FLATInstructions.td
+++ b/llvm/lib/Target/AMDGPU/FLATInstructions.td
@@ -207,14 +207,13 @@ class FLAT_Load_Pseudo <string opName, RegisterClass regClass,
   opName,
   (outs vdata_op:$vdst),
   !con(
-    !con(
-      !if(EnableSaddr,
-        (ins SReg_64_XEXEC_XNULL:$saddr, VGPR_32:$vaddr),
-        (ins VReg_64:$vaddr)),
-        (ins flat_offset:$offset)),
-        // FIXME: Operands with default values do not work with following non-optional operands.
-        !if(HasTiedOutput, (ins CPol:$cpol, vdata_op:$vdst_in),
-                           (ins CPol_0:$cpol))),
+    !if(EnableSaddr,
+      (ins SReg_64_XEXEC_XNULL:$saddr, VGPR_32:$vaddr),
+      (ins VReg_64:$vaddr)),
+      (ins flat_offset:$offset),
+      // FIXME: Operands with default values do not work with following non-optional operands.
+      !if(HasTiedOutput, (ins CPol:$cpol, vdata_op:$vdst_in),
+                         (ins CPol_0:$cpol))),
   " $vdst, $vaddr"#!if(HasSaddr, !if(EnableSaddr, ", $saddr", ", off"), "")#"$offset$cpol"> {
   let has_data = 0;
   let mayLoad = 1;


        


More information about the llvm-commits mailing list