[llvm] 6d24dd7 - [InstSimplify] Regenerate compares tests to fix issue reported on D77354
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 09:35:13 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-03T17:34:56+01:00
New Revision: 6d24dd7ed1198192fadd092f66717017ae895cdc
URL: https://github.com/llvm/llvm-project/commit/6d24dd7ed1198192fadd092f66717017ae895cdc
DIFF: https://github.com/llvm/llvm-project/commit/6d24dd7ed1198192fadd092f66717017ae895cdc.diff
LOG: [InstSimplify] Regenerate compares tests to fix issue reported on D77354
Added:
Modified:
llvm/test/Transforms/InstSimplify/compare.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstSimplify/compare.ll b/llvm/test/Transforms/InstSimplify/compare.ll
index 86e1fef22f60..5b997a5fc491 100644
--- a/llvm/test/Transforms/InstSimplify/compare.ll
+++ b/llvm/test/Transforms/InstSimplify/compare.ll
@@ -135,7 +135,6 @@ define i1 @gep9(i8* %ptr) {
; CHECK-NEXT: entry:
; CHECK-NEXT: ret i1 true
;
-
entry:
%first1 = getelementptr inbounds i8, i8* %ptr, i32 0
%first2 = getelementptr inbounds i8, i8* %first1, i32 1
@@ -156,7 +155,6 @@ define i1 @gep10(i8* %ptr) {
; CHECK-NEXT: entry:
; CHECK-NEXT: ret i1 true
;
-
entry:
%first1 = getelementptr inbounds i8, i8* %ptr, i32 -2
%first2 = getelementptr inbounds i8, i8* %first1, i32 44
@@ -173,7 +171,6 @@ define i1 @gep11(i8* %ptr) {
; CHECK-NEXT: entry:
; CHECK-NEXT: ret i1 true
;
-
entry:
%first1 = getelementptr inbounds i8, i8* %ptr, i32 -2
%last1 = getelementptr inbounds i8, i8* %ptr, i32 48
@@ -191,7 +188,6 @@ define i1 @gep12(i8* %ptr) {
; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8* [[FIRST1]], [[LAST2]]
; CHECK-NEXT: ret i1 [[CMP]]
;
-
entry:
%first1 = getelementptr inbounds i8, i8* %ptr, i32 -2
%last1 = getelementptr inbounds i8, i8* %ptr, i32 48
@@ -278,7 +274,6 @@ define i1 @gep16_no_null_opt(i8* %ptr, i32 %a) #0 {
; CHECK-NEXT: [[CMP:%.*]] = icmp eq i8* [[X]], null
; CHECK-NEXT: ret i1 [[CMP]]
;
-; CHECK getelementptr inbounds i8, i8* %ptr, i32 %b
%b = or i32 %a, 1
%x = getelementptr inbounds i8, i8* %ptr, i32 %b
%cmp = icmp eq i8* %x, null
More information about the llvm-commits
mailing list