forked from OSchip/llvm-project
[TargetInstrInfo] replace redundant expression in getMemOpBaseRegImmOfs
Summary: The expression for computing the return value of getMemOpBaseRegImmOfs has only one possible value. The other value would result in a return earlier in the function. This patch replaces the expression with its only possible value. Reviewers: sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D27437 llvm-svn: 290133
This commit is contained in:
parent
06dd406e27
commit
20565e2aa1
|
@ -5969,8 +5969,7 @@ bool X86InstrInfo::getMemOpBaseRegImmOfs(MachineInstr &MemOp, unsigned &BaseReg,
|
|||
|
||||
Offset = DispMO.getImm();
|
||||
|
||||
return MemOp.getOperand(MemRefBegin + X86::AddrIndexReg).getReg() ==
|
||||
X86::NoRegister;
|
||||
return true;
|
||||
}
|
||||
|
||||
static unsigned getStoreRegOpcode(unsigned SrcReg,
|
||||
|
|
Loading…
Reference in New Issue