[X86] Limit getTargetConstantFromNode to only work on NormalLoads not extending loads.

This seems to fix a failure reported by Jordan Rupprecht, but we
don't have a reduced test case yet.

llvm-svn: 365589
This commit is contained in:
Craig Topper 2019-07-10 00:40:01 +00:00
parent cc418a3af4
commit 50f70de557
1 changed files with 1 additions and 1 deletions

View File

@ -5788,7 +5788,7 @@ static SDValue getShuffleVectorZeroOrUndef(SDValue V2, int Idx,
}
static const Constant *getTargetConstantFromNode(LoadSDNode *Load) {
if (!Load)
if (!Load || !ISD::isNormalLoad(Load))
return nullptr;
SDValue Ptr = Load->getBasePtr();