[llvm] [InstCombine] Tighten use constraint in factorization transforms (PR #102943)
Kevin McAfee via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 14:13:41 PDT 2024
================
@@ -265,3 +265,27 @@ define i6 @sub_shl_same_amount_partial_nuw2(i6 %x, i6 %y, i6 %z) {
ret i6 %diff
}
+define i8 @add_shl_same_amount_constants(i8 %z) {
----------------
kalxr wrote:
Removed the unaffected new tests and added a pre-commit to demonstrate the issue with `tryFactorization` transform. The issue with `factorizeMathWithShlOps` is already shown by the changes to shl-factor.ll.
https://github.com/llvm/llvm-project/pull/102943
More information about the llvm-commits
mailing list