[llvm] r287985 - [X86] Simplify control flow. NFCI
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 26 10:43:21 PST 2016
Author: ctopper
Date: Sat Nov 26 12:43:21 2016
New Revision: 287985
URL: http://llvm.org/viewvc/llvm-project?rev=287985&view=rev
Log:
[X86] Simplify control flow. NFCI
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=287985&r1=287984&r2=287985&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Sat Nov 26 12:43:21 2016
@@ -1523,9 +1523,8 @@ bool X86DAGToDAGISel::selectScalarSSELoa
IsProfitableToFold(PatternNodeWithChain, N.getNode(), Root) &&
IsLegalToFold(PatternNodeWithChain, N.getNode(), Root, OptLevel)) {
LoadSDNode *LD = cast<LoadSDNode>(PatternNodeWithChain);
- if (!selectAddr(LD, LD->getBasePtr(), Base, Scale, Index, Disp, Segment))
- return false;
- return true;
+ return selectAddr(LD, LD->getBasePtr(), Base, Scale, Index, Disp,
+ Segment);
}
}
More information about the llvm-commits
mailing list