Splat vectors are canonicalized to BUILD_VECTOR's so the code can be simplified. NFC-ish.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
5840 ↗ | (On Diff #78014) | Would it be possible to change this function so that 'Op' is a BuildVectorSDNode rather than a generic SDValue? It looks like this function is only used by method 'LowerBUILD_VECTOR' at around line 6646. |
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
5840 ↗ | (On Diff #78014) | Sure. |
Comment Actions
Applied @andreadb's suggestion, and we could do the same to lowerBuildVectorToBitOp in a follow-up commit.
I also eliminated the 'Splat' variable, so the diff may look a bit larger.