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 | ||
---|---|---|
6030 | 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 | ||
---|---|---|
6030 | 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.
Would it be possible to change this function so that 'Op' is a BuildVectorSDNode rather than a generic SDValue?
The expicit cast at line 5859 would become redundant then.
It looks like this function is only used by method 'LowerBUILD_VECTOR' at around line 6646.