[llvm] 18e1a59 - Fix another instance where a variable was renamed in the generated LLVM IR. [NFC]

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 22:53:42 PDT 2020


Author: Douglas Yung
Date: 2020-03-23T22:53:29-07:00
New Revision: 18e1a59eed5588f23126ac606ed98e1a38352579

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

LOG: Fix another instance where a variable was renamed in the generated LLVM IR. [NFC]

Added: 
    

Modified: 
    llvm/test/Transforms/GVNSink/sink-common-code.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/GVNSink/sink-common-code.ll b/llvm/test/Transforms/GVNSink/sink-common-code.ll
index 124f51a16917..293e0daff5fb 100644
--- a/llvm/test/Transforms/GVNSink/sink-common-code.ll
+++ b/llvm/test/Transforms/GVNSink/sink-common-code.ll
@@ -695,8 +695,8 @@ if.end:
 
 ; CHECK-LABEL: @common_bitcast(
 ; CHECK: %. = select i1 %flag, float 2.000000e+00, float 1.000000e+00
-; CHECK: %a = bitcast i32* %x to float*
-; CHECK: store float %., float* %a
+; CHECK: %[[a1:.*]] = bitcast i32* %x to float*
+; CHECK: store float %., float* %[[a1]]
 define i32 @common_bitcast(i1 zeroext %flag, i32* %x) {
 entry:
   br i1 %flag, label %if.then, label %if.else
@@ -717,8 +717,8 @@ if.end:
 
 ; CHECK-LABEL: @common_addrspacecast(
 ; CHECK: %. = select i1 %flag, i32 9, i32 10
-; CHECK: %[[a:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
-; CHECK: store i32 %., i32 addrspace(1)* %[[a]]
+; CHECK: %[[a2:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
+; CHECK: store i32 %., i32 addrspace(1)* %[[a2]]
 define i32 @common_addrspacecast(i1 zeroext %flag, i32* %x) {
 entry:
   br i1 %flag, label %if.then, label %if.else


        


More information about the llvm-commits mailing list