[llvm] 2cf632a - [ConstraintElimination] UB reproducer for D145677
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 10:25:33 PST 2023
Author: Vitaly Buka
Date: 2023-03-10T10:25:21-08:00
New Revision: 2cf632a3f39a0df553d157e881d1b8e4554adb47
URL: https://github.com/llvm/llvm-project/commit/2cf632a3f39a0df553d157e881d1b8e4554adb47
DIFF: https://github.com/llvm/llvm-project/commit/2cf632a3f39a0df553d157e881d1b8e4554adb47.diff
LOG: [ConstraintElimination] UB reproducer for D145677
Reviewed By: fhahn
Differential Revision: https://reviews.llvm.org/D145812
Added:
Modified:
llvm/test/Transforms/ConstraintElimination/shl.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/ConstraintElimination/shl.ll b/llvm/test/Transforms/ConstraintElimination/shl.ll
index 5237a346f3d3..6d196f77da1c 100644
--- a/llvm/test/Transforms/ConstraintElimination/shl.ll
+++ b/llvm/test/Transforms/ConstraintElimination/shl.ll
@@ -1275,3 +1275,16 @@ entry:
%shl.cmp = icmp uge i256 %shl.ub, 0
ret i1 %shl.cmp
}
+
+define i1 @shl_55() {
+; CHECK-LABEL: @shl_55(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: [[SHL_UB:%.*]] = shl nuw nsw i256 1, 55
+; CHECK-NEXT: [[SHL_CMP:%.*]] = icmp uge i256 [[SHL_UB]], 1
+; CHECK-NEXT: ret i1 true
+;
+entry:
+ %shl.ub = shl nuw nsw i256 1, 55
+ %shl.cmp = icmp uge i256 %shl.ub, 1
+ ret i1 %shl.cmp
+}
More information about the llvm-commits
mailing list