forked from OSchip/llvm-project
[X86] Remove unnecessary if statement from LowerBUILD_VECTOR. NFCI
We were checking for 128, 256, or 512 bit vectors, but those are the only types that can get here. llvm-svn: 322510
This commit is contained in:
parent
e2f43f500a
commit
4f7fadd029
|
@ -8097,7 +8097,7 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
|
|||
return V;
|
||||
|
||||
// See if we can use a vector load to get all of the elements.
|
||||
if (VT.is128BitVector() || VT.is256BitVector() || VT.is512BitVector()) {
|
||||
{
|
||||
SmallVector<SDValue, 64> Ops(Op->op_begin(), Op->op_begin() + NumElems);
|
||||
if (SDValue LD =
|
||||
EltsFromConsecutiveLoads(VT, Ops, dl, DAG, Subtarget, false))
|
||||
|
|
Loading…
Reference in New Issue