llvm-project
0a3edaf4 - [LV] Commonise the udiv and other replicate cases into one block (#245221)

Commit
16 hours ago
[LV] Commonise the udiv and other replicate cases into one block (#245221) Previously only the udiv/sdiv/urem/srem cases were adding on the scalarisation cost for the result and operands. This PR commonises the udiv/etc cases together with the other block that handles add/sub/etc. Notionally there shouldn't be any difference in their treatment and at least now the cost model for add/sub/etc should be more accurate. This does result in an increase in some costs, e.g. see LoopVectorize/AArch64/predication_costs.ll which I will try to improve in a follow-on PR that only treats the result as needing scalarisation if a user lives outside the block.
Author
Parents
Loading