[llvm] LICM: extend hoist BO assoc to mul case (PR #106991)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 05:10:36 PDT 2024
================
@@ -71,7 +115,31 @@ loop:
br label %loop
}
-; Fold ADD but don't copy NSW if one op has it.
+; Hoist MUL and drop NUW if only one op has it.
----------------
nikic wrote:
I'd probably drop the one nuw/nsw cases, because if we don't fold with both, then we won't do it for one either.
https://github.com/llvm/llvm-project/pull/106991
More information about the llvm-commits
mailing list