mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
fix comment that didn't match the code; remove unnecessary braces; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8c4fd6005
commit
eed74400b1
@ -4494,12 +4494,11 @@ X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||
bool isCallRegIndirect = Subtarget.callRegIndirect();
|
||||
bool isTwoAddrFold = false;
|
||||
|
||||
// Atom favors register form of call. So, we do not fold loads into calls
|
||||
// when X86Subtarget is Atom.
|
||||
// For CPUs that favor the register form of a call,
|
||||
// do not fold loads into calls.
|
||||
if (isCallRegIndirect &&
|
||||
(MI->getOpcode() == X86::CALL32r || MI->getOpcode() == X86::CALL64r)) {
|
||||
(MI->getOpcode() == X86::CALL32r || MI->getOpcode() == X86::CALL64r))
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
unsigned NumOps = MI->getDesc().getNumOperands();
|
||||
bool isTwoAddr = NumOps > 1 &&
|
||||
|
Loading…
Reference in New Issue
Block a user