[X86] Remove part of an if condition that should always be true.
The IndexReg will always be non-null at this point. Earlier in the function, if IndexReg was null we set it to CurDAG->getRegister(0, VT) which made it non-null. llvm-svn: 359170
This commit is contained in:
parent
64eb9a95be
commit
013503c78d
|
@ -2293,7 +2293,7 @@ bool X86DAGToDAGISel::selectLEAAddr(SDValue N,
|
|||
Complexity += 2;
|
||||
}
|
||||
|
||||
if (AM.Disp && (AM.Base_Reg.getNode() || AM.IndexReg.getNode()))
|
||||
if (AM.Disp)
|
||||
Complexity++;
|
||||
|
||||
// If it isn't worth using an LEA, reject it.
|
||||
|
|
Loading…
Reference in New Issue