[llvm] [InstCombine] Simplify fractions when there is no overflow (PR #92949)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 16:43:27 PDT 2024
================
@@ -380,7 +380,7 @@ define i32 @test26(i32 %a) {
define i32 @test27(i32 %a) {
; CHECK-LABEL: @test27(
-; CHECK-NEXT: [[DIV:%.*]] = shl nuw i32 [[A:%.*]], 1
+; CHECK-NEXT: [[DIV:%.*]] = shl nuw nsw i32 [[A:%.*]], 1
----------------
topperc wrote:
Is this from a different change?
https://github.com/llvm/llvm-project/pull/92949
More information about the llvm-commits
mailing list