[all-commits] [llvm/llvm-project] 40b637: [InstCombine] Add tests for indirect mul by power ...
goldsteinn via All-commits
all-commits at lists.llvm.org
Fri Apr 7 12:58:41 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 40b637f4604666c1388cbb5f19de55ead536a248
https://github.com/llvm/llvm-project/commit/40b637f4604666c1388cbb5f19de55ead536a248
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2023-04-07 (Fri, 07 Apr 2023)
Changed paths:
A llvm/test/Transforms/InstCombine/mul-pow2.ll
Log Message:
-----------
[InstCombine] Add tests for indirect mul by power of 2; NFC
Differential Revision: https://reviews.llvm.org/D146346
Commit: 513251b76582cf0d3ba81dfe36a05d452001b3b3
https://github.com/llvm/llvm-project/commit/513251b76582cf0d3ba81dfe36a05d452001b3b3
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2023-04-07 (Fri, 07 Apr 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
M llvm/test/Transforms/InstCombine/mul-pow2.ll
Log Message:
-----------
[InstCombine] Improve transforms for `(mul X, Y)` -> `(shl X, log2(Y)`
Using the more robust log2 search allows us to fold more cases (same
logic as exists for idiv/irem).
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D146347
Compare: https://github.com/llvm/llvm-project/compare/f799901c06c0...513251b76582
More information about the All-commits
mailing list