[llvm] [InstCombine] Drop NSW when converting `shl X, BW - 1` back into mul (PR #121633)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 01:30:25 PST 2025


https://github.com/nikic approved this pull request.

LGTM, though I think it would be good to test more cases (you currently test the flag only on one operand, for one of the cases).

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


More information about the llvm-commits mailing list