projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad3bb5
)
[SCCP] Add test for icmp that requires DL to fold (NFC)
author
Nikita Popov
<npopov@redhat.com>
Wed, 2 Nov 2022 09:30:04 +0000
(10:30 +0100)
committer
Nikita Popov
<npopov@redhat.com>
Wed, 2 Nov 2022 09:30:04 +0000
(10:30 +0100)
llvm/test/Transforms/SCCP/conditions-ranges.ll
patch
|
blob
|
history
diff --git
a/llvm/test/Transforms/SCCP/conditions-ranges.ll
b/llvm/test/Transforms/SCCP/conditions-ranges.ll
index
3d4b529
..
644b0f6
100644
(file)
--- 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
+}