fix a bug in my cleanup patch

llvm-svn: 75402
This commit is contained in:
Chris Lattner 2009-07-11 23:07:30 +00:00
parent 619bf84ad4
commit 48cee9b4c1
1 changed files with 1 additions and 1 deletions

View File

@ -1332,7 +1332,7 @@ bool X86DAGToDAGISel::SelectLEAAddr(SDValue Op, SDValue N,
Complexity++; Complexity++;
// If it isn't worth using an LEA, reject it. // If it isn't worth using an LEA, reject it.
if (Complexity < 2) if (Complexity <= 2)
return false; return false;
SDValue Segment; SDValue Segment;