mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[X86] EltsFromConsecutiveLoads - remove old FIXME comment. NFC.
Its unlikely an undef element in a zero vector will be any use.
This commit is contained in:
parent
4eb782cbfc
commit
b68e123805
@ -8398,8 +8398,6 @@ static SDValue EltsFromConsecutiveLoads(EVT VT, ArrayRef<SDValue> Elts,
|
|||||||
// Handle Special Cases - all undef or undef/zero.
|
// Handle Special Cases - all undef or undef/zero.
|
||||||
if (UndefMask.countPopulation() == NumElems)
|
if (UndefMask.countPopulation() == NumElems)
|
||||||
return DAG.getUNDEF(VT);
|
return DAG.getUNDEF(VT);
|
||||||
|
|
||||||
// FIXME: Should we return this as a BUILD_VECTOR instead?
|
|
||||||
if ((ZeroMask.countPopulation() + UndefMask.countPopulation()) == NumElems)
|
if ((ZeroMask.countPopulation() + UndefMask.countPopulation()) == NumElems)
|
||||||
return VT.isInteger() ? DAG.getConstant(0, DL, VT)
|
return VT.isInteger() ? DAG.getConstant(0, DL, VT)
|
||||||
: DAG.getConstantFP(0.0, DL, VT);
|
: DAG.getConstantFP(0.0, DL, VT);
|
||||||
|
Loading…
Reference in New Issue
Block a user