We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e82ee5 commit 6ce9531Copy full SHA for 6ce9531
llvm/test/Transforms/CorrelatedValuePropagation/add.ll
@@ -562,6 +562,20 @@ join:
562
ret i32 %add
563
}
564
565
+; todo do not remove the assume condition
566
+define i32 @issue90206(i32 noundef %x) {
567
+; CHECK-LABEL: define range(i32 0, -2147483648) i32 @issue90206(
568
+; CHECK-SAME: i32 noundef [[X:%.*]]) {
569
+; CHECK-NEXT: [[R:%.*]] = add i32 [[X]], -1
570
+; CHECK-NEXT: tail call void @llvm.assume(i1 true)
571
+; CHECK-NEXT: ret i32 [[R]]
572
+;
573
+ %r = add i32 %x, -1
574
+ %17 = icmp sgt i32 %r, -1
575
+ tail call void @llvm.assume(i1 %17)
576
+ ret i32 %r
577
+}
578
+
579
;.
580
; CHECK: [[RNG0]] = !{i32 0, i32 2147483647}
581
0 commit comments