[llvm] ebb0be9 - [ConstraintElimination] Regenerate check lines for test.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 12:23:40 PDT 2022
Author: Florian Hahn
Date: 2022-10-10T20:23:25+01:00
New Revision: ebb0be9b68046c2cf7607d32527cbce29d39ab9a
URL: https://github.com/llvm/llvm-project/commit/ebb0be9b68046c2cf7607d32527cbce29d39ab9a
DIFF: https://github.com/llvm/llvm-project/commit/ebb0be9b68046c2cf7607d32527cbce29d39ab9a.diff
LOG: [ConstraintElimination] Regenerate check lines for test.
Thanks @nikic for spotting that!
Added:
Modified:
llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll b/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
index a487376d639a3..ec485f424c6b0 100644
--- a/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
+++ b/llvm/test/Transforms/ConstraintElimination/large-constant-ints.ll
@@ -305,6 +305,17 @@ define i1 @add_minus_one_decomp_recursive() {
}
define i1 @gep_decomp_large_index(ptr %a) {
+; CHECK-LABEL: @gep_decomp_large_index(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i64, ptr [[A:%.*]], i64 2147483646
+; CHECK-NEXT: [[GEP_2:%.*]] = getelementptr inbounds i64, ptr [[A]], i64 2147483647
+; CHECK-NEXT: [[NE:%.*]] = icmp ne ptr [[GEP_1]], [[GEP_2]]
+; CHECK-NEXT: call void @llvm.assume(i1 [[NE]])
+; CHECK-NEXT: [[CMP_ULE:%.*]] = icmp ule ptr [[GEP_1]], [[GEP_2]]
+; CHECK-NEXT: [[CMP_UGE:%.*]] = icmp uge ptr [[GEP_1]], [[GEP_2]]
+; CHECK-NEXT: [[RES:%.*]] = xor i1 true, false
+; CHECK-NEXT: ret i1 [[RES]]
+;
entry:
%gep.1 = getelementptr inbounds i64, ptr %a, i64 2147483646
%gep.2 = getelementptr inbounds i64, ptr %a, i64 2147483647
More information about the llvm-commits
mailing list