getZeroVector canonicalizes the type to vXi32, but that's a
legalization action. We should use the most correct type if
possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371345
91177308-0d34-0410-b5e6-
96231b3b80d8
// Multiply by zero.
// Don't return RHS as it may contain UNDEFs.
if (ISD::isBuildVectorAllZeros(RHS.getNode()))
- return getZeroVector(N->getSimpleValueType(0), Subtarget, DAG, SDLoc(N));
+ return DAG.getConstant(0, SDLoc(N), N->getValueType(0));
// PMULDQ/PMULUDQ only uses lower 32 bits from each vector element.
const TargetLowering &TLI = DAG.getTargetLoweringInfo();