[llvm] b44c9b3 - [DSE] Fix variable name clash in test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 5 07:08:25 PDT 2022
Author: Nikita Popov
Date: 2022-10-05T15:26:55+02:00
New Revision: b44c9b39c59820b4b41e4318f61b0ebdac2852b1
URL: https://github.com/llvm/llvm-project/commit/b44c9b39c59820b4b41e4318f61b0ebdac2852b1
DIFF: https://github.com/llvm/llvm-project/commit/b44c9b39c59820b4b41e4318f61b0ebdac2852b1.diff
LOG: [DSE] Fix variable name clash in test (NFC)
update_tests_checks.py generates the same identifier for lowercase
and uppercase variable names. Make sure they have a distinct name.
Added:
Modified:
llvm/test/Transforms/DeadStoreElimination/simple.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/DeadStoreElimination/simple.ll b/llvm/test/Transforms/DeadStoreElimination/simple.ll
index 55c494ecdd44d..29e86048dc241 100644
--- a/llvm/test/Transforms/DeadStoreElimination/simple.ll
+++ b/llvm/test/Transforms/DeadStoreElimination/simple.ll
@@ -247,20 +247,20 @@ define i32 addrspace(1)* @test13_addrspacecast() {
; CHECK-LABEL: @test13_addrspacecast(
; CHECK-NEXT: [[P:%.*]] = tail call i8* @malloc(i64 4)
; CHECK-NEXT: [[P_BC:%.*]] = bitcast i8* [[P]] to i32*
-; CHECK-NEXT: [[P:%.*]] = addrspacecast i32* [[P_BC]] to i32 addrspace(1)*
+; CHECK-NEXT: [[P_AC:%.*]] = addrspacecast i32* [[P_BC]] to i32 addrspace(1)*
; CHECK-NEXT: call void @may_unwind()
-; CHECK-NEXT: store i32 0, i32 addrspace(1)* [[P]], align 4
-; CHECK-NEXT: ret i32 addrspace(1)* [[P]]
+; CHECK-NEXT: store i32 0, i32 addrspace(1)* [[P_AC]], align 4
+; CHECK-NEXT: ret i32 addrspace(1)* [[P_AC]]
;
%p = tail call i8* @malloc(i64 4)
%p.bc = bitcast i8* %p to i32*
- %P = addrspacecast i32* %p.bc to i32 addrspace(1)*
- %DEAD = load i32, i32 addrspace(1)* %P
+ %p.ac = addrspacecast i32* %p.bc to i32 addrspace(1)*
+ %DEAD = load i32, i32 addrspace(1)* %p.ac
%DEAD2 = add i32 %DEAD, 1
- store i32 %DEAD2, i32 addrspace(1)* %P
+ store i32 %DEAD2, i32 addrspace(1)* %p.ac
call void @may_unwind()
- store i32 0, i32 addrspace(1)* %P
- ret i32 addrspace(1)* %P
+ store i32 0, i32 addrspace(1)* %p.ac
+ ret i32 addrspace(1)* %p.ac
}
@@ -391,7 +391,7 @@ define i8* @test25(i8* %p) nounwind {
; CHECK-NEXT: [[P_4:%.*]] = getelementptr i8, i8* [[P:%.*]], i64 4
; CHECK-NEXT: [[TMP:%.*]] = load i8, i8* [[P_4]], align 1
; CHECK-NEXT: store i8 0, i8* [[P_4]], align 1
-; CHECK-NEXT: [[Q:%.*]] = call i8* @strdup(i8* [[P]]) #[[ATTR10:[0-9]+]]
+; CHECK-NEXT: [[Q:%.*]] = call i8* @strdup(i8* [[P]]) #[[ATTR13:[0-9]+]]
; CHECK-NEXT: store i8 [[TMP]], i8* [[P_4]], align 1
; CHECK-NEXT: ret i8* [[Q]]
;
More information about the llvm-commits
mailing list