Revert an unintended change.

llvm-svn: 32239
This commit is contained in:
Evan Cheng 2006-12-05 22:03:40 +00:00
parent adeea85f7d
commit 40a5de9cd9

View File

@ -907,7 +907,7 @@ bool X86DAGToDAGISel::SelectLEAAddr(SDOperand Op, SDOperand N,
if (AM.GV || AM.CP || AM.ES || AM.JT != -1) {
// For X86-64, we should always use lea to materialize RIP relative
// addresses.
if (Subtarget->is64Bit() && TM.getRelocationModel() != Reloc::Static)
if (Subtarget->is64Bit())
Complexity = 4;
else
Complexity += 2;