forked from OSchip/llvm-project
parent
278f9e7d27
commit
d3ab1a3905
|
@ -1523,9 +1523,8 @@ bool X86DAGToDAGISel::selectScalarSSELoad(SDNode *Root,
|
||||||
IsProfitableToFold(PatternNodeWithChain, N.getNode(), Root) &&
|
IsProfitableToFold(PatternNodeWithChain, N.getNode(), Root) &&
|
||||||
IsLegalToFold(PatternNodeWithChain, N.getNode(), Root, OptLevel)) {
|
IsLegalToFold(PatternNodeWithChain, N.getNode(), Root, OptLevel)) {
|
||||||
LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
|
LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
|
||||||
if (!selectAddr(LD, LD->getBasePtr(), Base, Scale, Index, Disp, Segment))
|
return selectAddr(LD, LD->getBasePtr(), Base, Scale, Index, Disp,
|
||||||
return false;
|
Segment);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue