This patch builds upon the initial BUILD_VECTOR work introduced in
D98700. It further optimizes the lowering of BUILD_VECTOR by using
VSELECT operations to effectively insert repeated elements into the
vector with relatively few instructions. This allows us to optimize more
BUILD_VECTORs without significantly increasing the size of the generated
code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM other than that one comment.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
---|---|---|
1291 | Put this block in curly braces for consistency with the else? |
llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
---|---|---|
1291 | Aye thanks, I prefer it consistent. I wasn't sure what the style guidelines are for that situation. |
Put this block in curly braces for consistency with the else?