Skip to content

Commit 7bbf801

Browse files
committed
[ConstraintElim] Add comments. NFC.
1 parent ae3d759 commit 7bbf801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/Transforms/ConstraintElimination/shr-exact.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ entry:
153153
ret i1 %cmp
154154
}
155155

156-
156+
; LShr doesn't preserve the sign of the value, so we cannot perform
157+
; the transformation for signed comparisons.
157158
define i1 @precond_icmp_lshr_and_lshr_signed_pred(i64 %x, i64 %y) {
158159
; CHECK-LABEL: define i1 @precond_icmp_lshr_and_lshr_signed_pred(
159160
; CHECK-SAME: i64 [[X:%.*]], i64 [[Y:%.*]]) {

0 commit comments

Comments
 (0)