Skip to content

Commit 46b3556

Browse files
committed
fixup! fixup! [LVI] Support no constant range of cast and freeze value in getEdgeValueLocal.
1 parent d75a408 commit 46b3556

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/test/Transforms/CorrelatedValuePropagation/range.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,13 +1260,13 @@ target:
12601260
}
12611261

12621262
define i16 @return_range_for_edge_value_sext(i8 %a) {
1263-
; CHECK-LABEL: define range(i16 0, 98) i16 @return_range_for_edge_value_sext(
1263+
; CHECK-LABEL: define range(i16 -55, 0) i16 @return_range_for_edge_value_sext(
12641264
; CHECK-SAME: i8 [[A:%.*]]) {
12651265
; CHECK-NEXT: [[ENTRY:.*:]]
12661266
; CHECK-NEXT: [[B:%.*]] = sext i8 [[A]] to i16
12671267
; CHECK-NEXT: br label %[[DISPATCH:.*]]
12681268
; CHECK: [[DISPATCH]]:
1269-
; CHECK-NEXT: [[CMP:%.*]] = icmp ult i8 [[A]], 98
1269+
; CHECK-NEXT: [[CMP:%.*]] = icmp ugt i8 [[A]], -56
12701270
; CHECK-NEXT: br i1 [[CMP]], label %[[TARGET:.*]], label %[[DISPATCH]]
12711271
; CHECK: [[TARGET]]:
12721272
; CHECK-NEXT: ret i16 [[B]]
@@ -1276,7 +1276,7 @@ entry:
12761276
br label %dispatch
12771277

12781278
dispatch:
1279-
%cmp = icmp ult i8 %a, 98
1279+
%cmp = icmp ugt i8 %a, -56
12801280
br i1 %cmp, label %target, label %dispatch
12811281

12821282
target:

llvm/test/Transforms/JumpThreading/branch-debug-info2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if.end.i60: ; preds = %shadow_to_ptr.exit
1818
%spec.select.i = select i1 %cmp3.i, i32 -1, i32 %conv7.i, !dbg !17
1919
; Jump threading is going to fold the select in to the branch. Ensure debug
2020
; info is not lost, and is merged from the select and the branch.
21-
; CHECK-NOT: br i1 %cmp3.i, label %for.inc, label %ptr_to_shadow.exit
21+
; CHECK-NOT: br i1 %cmp3.i, label %for.inc, label %if.end22
2222
; CHECK: br i1 %cmp3.i, label %for.inc, label %if.end22, !dbg [[DBG:![0-9]+]]
2323
; CHECK: [[DBG]] = !DILocation(line: 9, column: 1, scope: !{{.*}})
2424

0 commit comments

Comments
 (0)