[llvm] [InstCombine] Add one-use limitation to box multiply fold (PR #72876)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 02:59:46 PST 2023


================
@@ -177,6 +177,7 @@ define i64 @mul_full_64_variant2(i64 %a, i64 %b, ptr nocapture %rhi) {
   ret i64 %add27
 }
 
+; Negative test case for mul_fold function: MUL7 is used in more than one place
----------------
nikic wrote:

Please also add a test to show that there is no one-use requirement on the shl, unless it already exists.

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


More information about the llvm-commits mailing list