Skip to content
Commit b92693ac authored by Nikita Popov's avatar Nikita Popov
Browse files

[InstCombine] Support inverting lshr with non-negative operand

If the lshr operand is non-negative, we can treat it the same
way as an ashr. Ideally we would represent this as "lshr nneg",
but for now just perform the necessary ValueTracking query.

Proof: https://alive2.llvm.org/ce/z/Ahg4ri
parent dd5c5349
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment