[X86] Simplify control flow. NFCI

llvm-svn: 287985
This commit is contained in:
Craig Topper 2016-11-26 18:43:21 +00:00
parent 278f9e7d27
commit d3ab1a3905
1 changed files with 2 additions and 3 deletions

View File

@ -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;
} }
} }