[llvm] 9d074fd - [SCCP] Add test for icmp that requires DL to fold (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 02:43:12 PDT 2022
Author: Nikita Popov
Date: 2022-11-02T10:30:04+01:00
New Revision: 9d074fd37066b133cab77322633717268cc3f2f9
URL: https://github.com/llvm/llvm-project/commit/9d074fd37066b133cab77322633717268cc3f2f9
DIFF: https://github.com/llvm/llvm-project/commit/9d074fd37066b133cab77322633717268cc3f2f9.diff
LOG: [SCCP] Add test for icmp that requires DL to fold (NFC)
Added:
Modified:
llvm/test/Transforms/SCCP/conditions-ranges.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/SCCP/conditions-ranges.ll b/llvm/test/Transforms/SCCP/conditions-ranges.ll
index 3d4b529dbc79e..644b0f6994e73 100644
--- a/llvm/test/Transforms/SCCP/conditions-ranges.ll
+++ b/llvm/test/Transforms/SCCP/conditions-ranges.ll
@@ -1369,3 +1369,12 @@ bb139: ; preds = %bb135
bb142: ; preds = %bb139
ret void
}
+
+define i1 @ptr_icmp_data_layout() {
+; CHECK-LABEL: @ptr_icmp_data_layout(
+; CHECK-NEXT: ret i1 icmp eq (ptr getelementptr inbounds (i32, ptr @A, i64 1), ptr @A)
+;
+ %a.end = getelementptr i32, ptr @A, i64 1
+ %cmp = icmp eq ptr %a.end, @A
+ ret i1 %cmp
+}
More information about the llvm-commits
mailing list