aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-11 23:07:30 +0000
committerChris Lattner <sabre@nondot.org>2009-07-11 23:07:30 +0000
commit14f7511f46ed61b0dbaaf566e1170f40b9663924 (patch)
tree372f094a0527f1d5ff00a5eddca8d4edce1eee7f
parent2514278b833a0ca95869bae633099d86dd39550d (diff)
fix a bug in my cleanup patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75402 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index d94aa5cbdb..8aa627f8a7 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -1332,7 +1332,7 @@ bool X86DAGToDAGISel::SelectLEAAddr(SDValue Op, SDValue N,
Complexity++;
// If it isn't worth using an LEA, reject it.
- if (Complexity < 2)
+ if (Complexity <= 2)
return false;
SDValue Segment;