[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:
Craig Topper 2019-04-25 06:08:02 +00:00
parent 64eb9a95be
commit 013503c78d
1 changed files with 1 additions and 1 deletions

View File

@ -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.