[llvm] [InstCombine] Simplify fractions when there is no overflow (PR #210516)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 23:20:48 PDT 2026


================
@@ -2033,6 +2033,234 @@ define <2 x i32> @sdiv_select_one_false_poison_vec(<2 x i32> %a, i1 %b) {
   ret <2 x i32> %div
 }
 
+define i32 @sdiv_mul_nsw_gcd(i32 %x) {
+; CHECK-LABEL: @sdiv_mul_nsw_gcd(
+; CHECK-NEXT:    [[TMP1:%.*]] = mul nsw i32 [[X:%.*]], 5
----------------
topperc wrote:

Yeah FileCheck doesn't care what name is used.

Can you regenerate the tests?

https://github.com/llvm/llvm-project/pull/210516


More information about the llvm-commits mailing list