[llvm] [VPlan] Introduces explicit broadcast for live-in constants. (PR #133213)
Elvis Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 17:54:39 PDT 2025
https://github.com/ElvisWang123 commented:
Sorry didn't notice the previous comment.
For follow-up optimizations, if the `materializeBroadcasts()` could move before vplan-based register pressure calculation. I will tried to make the register usage of the constant splat can be calculated.
Although many targets support folding constant value into one operand in vector instructions i.e. `.vx` instructions in RISCV. But not all instructions support this kind of folding.
Explicit showing constants broadcast on the vplan can help estimate the register pressure more accurately.
https://github.com/llvm/llvm-project/pull/133213
More information about the llvm-commits
mailing list