fix a bug in my cleanup patch
authorChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 23:07:30 +0000 (23:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 23:07:30 +0000 (23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75402 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp

index d94aa5cbdbe61e08e443d5883d18a821a1e3d3ec..8aa627f8a7abecebc5206d6f685fb3da6da6e89e 100644 (file)
@@ -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;