[llvm] a0a06b1 - [AMDGPU] Make a check slightly more robust

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 05:10:14 PDT 2023


Author: Jay Foad
Date: 2023-09-28T13:09:51+01:00
New Revision: a0a06b1804c9269ca2ee3d9323794ea1fe785619

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

LOG: [AMDGPU] Make a check slightly more robust

Previously this was relying on [[RESULT]] having been defined in an earlier function.

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/early-if-convert.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/early-if-convert.ll b/llvm/test/CodeGen/AMDGPU/early-if-convert.ll
index 947aa62aade89e6..c3f547ccfc06d34 100644
--- a/llvm/test/CodeGen/AMDGPU/early-if-convert.ll
+++ b/llvm/test/CodeGen/AMDGPU/early-if-convert.ll
@@ -33,7 +33,7 @@ endif:
 ; GCN: v_cmp_neq_f32_e32 vcc, 1.0, [[VAL]]
 ; GCN-DAG: v_add_f32_e32 [[ADD:v[0-9]+]], [[VAL]], [[VAL]]
 ; GCN-DAG: v_mul_f32_e32 [[MUL:v[0-9]+]], [[VAL]], [[VAL]]
-; GCN: buffer_store_dword [[RESULT]]
+; GCN: buffer_store_dword [[MUL]]
 define amdgpu_kernel void @test_vccnz_ifcvt_diamond(ptr addrspace(1) %out, ptr addrspace(1) %in) #0 {
 entry:
   %v = load float, ptr addrspace(1) %in


        


More information about the llvm-commits mailing list