[llvm] [InstCombine] Support division of numbers that can be converted to a shift (PR #88220)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 07:48:40 PDT 2024
================
@@ -1149,6 +1149,32 @@ Instruction *InstCombinerImpl::commonIDivTransforms(BinaryOperator &I) {
Mul->setHasNoSignedWrap(OBO->hasNoSignedWrap());
return Mul;
}
+
+ // If we can reduce these functions so they can factor out to a shift or
----------------
AtariDreams wrote:
Note to self: make this one_use for the multiplication when I get back
https://github.com/llvm/llvm-project/pull/88220
More information about the llvm-commits
mailing list