Skip to content

Commit 18e1a59

Browse files
committed
Fix another instance where a variable was renamed in the generated LLVM IR. [NFC]
1 parent a44de12 commit 18e1a59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ if.end:
695695

696696
; CHECK-LABEL: @common_bitcast(
697697
; CHECK: %. = select i1 %flag, float 2.000000e+00, float 1.000000e+00
698-
; CHECK: %a = bitcast i32* %x to float*
699-
; CHECK: store float %., float* %a
698+
; CHECK: %[[a1:.*]] = bitcast i32* %x to float*
699+
; CHECK: store float %., float* %[[a1]]
700700
define i32 @common_bitcast(i1 zeroext %flag, i32* %x) {
701701
entry:
702702
br i1 %flag, label %if.then, label %if.else
@@ -717,8 +717,8 @@ if.end:
717717

718718
; CHECK-LABEL: @common_addrspacecast(
719719
; CHECK: %. = select i1 %flag, i32 9, i32 10
720-
; CHECK: %[[a:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
721-
; CHECK: store i32 %., i32 addrspace(1)* %[[a]]
720+
; CHECK: %[[a2:.*]] = addrspacecast i32* %x to i32 addrspace(1)*
721+
; CHECK: store i32 %., i32 addrspace(1)* %[[a2]]
722722
define i32 @common_addrspacecast(i1 zeroext %flag, i32* %x) {
723723
entry:
724724
br i1 %flag, label %if.then, label %if.else

0 commit comments

Comments
 (0)