forked from OSchip/llvm-project
R600: Fix assert on copy of an i1 on pre-SI
i1 is not a legal type on Evergreen, so this combine proceeded and tried to produce a bitcast between i1 and i8. llvm-svn: 222630
This commit is contained in:
parent
b7ebdffe3c
commit
28638f1e2c
|
@ -2155,7 +2155,8 @@ SDValue AMDGPUTargetLowering::performStoreCombine(SDNode *N,
|
|||
SDValue Value = SN->getValue();
|
||||
EVT VT = Value.getValueType();
|
||||
|
||||
if (isTypeLegal(VT) || SN->isVolatile() || !ISD::isNormalLoad(Value.getNode()))
|
||||
if (isTypeLegal(VT) || SN->isVolatile() ||
|
||||
!ISD::isNormalLoad(Value.getNode()) || VT.getSizeInBits() < 8)
|
||||
return SDValue();
|
||||
|
||||
LoadSDNode *LoadVal = cast<LoadSDNode>(Value);
|
||||
|
|
Loading…
Reference in New Issue