https://bugs.llvm.org/show_bug.cgi?id=48744

            Bug ID: 48744
           Summary: [InstCombine] x*3/4 > x not simplified
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Missing fold:

define i1 @src(i32 %x) {
  %m = mul nuw i32 %x, 3
  %d = lshr i32 %m, 2
  %c = icmp ugt i32 %d, %x
  ret i1 %c
}
define i1 @tgt(i32 %x) {
  ret i1 false
}

https://llvm.godbolt.org/z/6z99v8
https://alive2.llvm.org/ce/z/mnzcKx

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to