llvm-project
cb85dfeb - [VPlan] Skip shl->mul SCEV rewrite for out-of-range shift amounts. (#204921)

Commit
32 days ago
[VPlan] Skip shl->mul SCEV rewrite for out-of-range shift amounts. (#204921) getSCEVExprForVPValue rewrites `shl x, c` as `x * (1 << c)` using ScalarEvolution::getPowerOfTwo, which asserts that the power is less than the type's bit width. Only perform the rewrite when the shift amount is less than the operand's bit width, to avoid assertion.
Author
Parents
Loading