[llvm] 2211a49 - [Assembler] Fix global icmp test
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 8 08:26:59 PST 2021
Author: Nikita Popov
Date: 2021-03-08T17:26:49+01:00
New Revision: 2211a49294b9aaa8d5f0f1187e7dcf26910071a9
URL: https://github.com/llvm/llvm-project/commit/2211a49294b9aaa8d5f0f1187e7dcf26910071a9
DIFF: https://github.com/llvm/llvm-project/commit/2211a49294b9aaa8d5f0f1187e7dcf26910071a9.diff
LOG: [Assembler] Fix global icmp test
Remove test that no longer folds after
f08148e874088a07b972203a183db00de9c38a70.
Added:
Modified:
llvm/test/Assembler/ConstantExprFold.ll
Removed:
################################################################################
diff --git a/llvm/test/Assembler/ConstantExprFold.ll b/llvm/test/Assembler/ConstantExprFold.ll
index fc545731afed..96b3e54fcffe 100644
--- a/llvm/test/Assembler/ConstantExprFold.ll
+++ b/llvm/test/Assembler/ConstantExprFold.ll
@@ -19,18 +19,17 @@
%Ty = type { i32, i32 }
@B = external global %Ty
- at 9 = global i1 icmp slt (i64* @A, i64* getelementptr (i64, i64* @A, i64 1)) ; true
- at 10 = global i1 icmp ult (i64* @A, i64* getelementptr (i64, i64* @A, i64 1)) ; true
- at 11 = global i1 icmp slt (i64* @A, i64* getelementptr (i64, i64* @A, i64 0)) ; false
- at 12 = global i1 icmp slt (i32* getelementptr (%Ty, %Ty* @B, i64 0, i32 0),
+ at 9 = global i1 icmp ult (i64* @A, i64* getelementptr (i64, i64* @A, i64 1)) ; true
+ at 10 = global i1 icmp slt (i64* @A, i64* getelementptr (i64, i64* @A, i64 0)) ; false
+ at 11 = global i1 icmp slt (i32* getelementptr (%Ty, %Ty* @B, i64 0, i32 0),
i32* getelementptr (%Ty, %Ty* @B, i64 0, i32 1)) ; true
;global i1 icmp ne (i64* @A, i64* bitcast (%Ty* @B to i64*)) ; true
; PR2206
@cons = weak global i32 0, align 8 ; <i32*> [#uses=1]
- at 13 = global i64 and (i64 ptrtoint (i32* @cons to i64), i64 7)
+ at 12 = global i64 and (i64 ptrtoint (i32* @cons to i64), i64 7)
- at 14 = global <2 x i8*> getelementptr(i8, <2 x i8*> undef, <2 x i64> <i64 1, i64 1>)
- at 15 = global <2 x i8*> getelementptr({ i8 }, <2 x { i8 }*> undef, <2 x i64> <i64 1, i64 1>, <2 x i32> <i32 0, i32 0>)
- at 16 = global <2 x i8*> getelementptr(i8, <2 x i8*> zeroinitializer, <2 x i64> <i64 0, i64 0>)
- at 17 = global <2 x i8*> getelementptr({ i8 }, <2 x { i8 }*> zeroinitializer, <2 x i64> <i64 0, i64 0>, <2 x i32> <i32 0, i32 0>)
+ at 13 = global <2 x i8*> getelementptr(i8, <2 x i8*> undef, <2 x i64> <i64 1, i64 1>)
+ at 14 = global <2 x i8*> getelementptr({ i8 }, <2 x { i8 }*> undef, <2 x i64> <i64 1, i64 1>, <2 x i32> <i32 0, i32 0>)
+ at 15 = global <2 x i8*> getelementptr(i8, <2 x i8*> zeroinitializer, <2 x i64> <i64 0, i64 0>)
+ at 16 = global <2 x i8*> getelementptr({ i8 }, <2 x { i8 }*> zeroinitializer, <2 x i64> <i64 0, i64 0>, <2 x i32> <i32 0, i32 0>)
More information about the llvm-commits
mailing list