llvm-project
7c8c810a - [VectorCombine] Allow equal-cost scalarization for single-use loads (#218340)

Commit
13 days ago
[VectorCombine] Allow equal-cost scalarization for single-use loads (#218340) Allow scalarizeLoadExtract to scalarize a single-use vector load when the scalarized cost is equal to the original cost. For a single extract user, this does not increase the number of memory operations and narrows the memory access, which can expose further optimizations such as store-to-load forwarding and DSE. Keep requiring a strict cost improvement for loads with multiple users. Proof https://alive2.llvm.org/ce/z/YAck5U Fixes https://github.com/llvm/llvm-project/issues/217598
Author
Parents
Loading