mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 20:04:03 +00:00
fix compilation failure of smg2000
llvm-svn: 30900
This commit is contained in:
parent
d781da5f26
commit
fde6859201
@ -797,7 +797,7 @@ bool X86DAGToDAGISel::SelectScalarSSELoad(SDOperand N, SDOperand &Base,
|
|||||||
SDOperand &OutChain) {
|
SDOperand &OutChain) {
|
||||||
if (N.getOpcode() == ISD::SCALAR_TO_VECTOR) {
|
if (N.getOpcode() == ISD::SCALAR_TO_VECTOR) {
|
||||||
InChain = N.getOperand(0).getValue(1);
|
InChain = N.getOperand(0).getValue(1);
|
||||||
if (ISD::isNON_EXTLoad(InChain.Val)) {
|
if (ISD::isNON_EXTLoad(InChain.Val) && InChain.getValue(0).hasOneUse()) {
|
||||||
LoadSDNode *LD = cast<LoadSDNode>(InChain);
|
LoadSDNode *LD = cast<LoadSDNode>(InChain);
|
||||||
if (!SelectAddr(LD->getBasePtr(), Base, Scale, Index, Disp))
|
if (!SelectAddr(LD->getBasePtr(), Base, Scale, Index, Disp))
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user