diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-02-09 16:04:52 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-02-09 16:04:52 +0000 |
commit | fc54c61c565a99b92d7466a22dbdb04897e4d874 (patch) | |
tree | a18bf4a039692aa241c99b4c4091b5812ebcde7e | |
parent | dc0e4915b0f971179a4fdfe7f2f877acc94cc835 (diff) | |
download | bcm5719-llvm-fc54c61c565a99b92d7466a22dbdb04897e4d874.tar.gz bcm5719-llvm-fc54c61c565a99b92d7466a22dbdb04897e4d874.zip |
fix comment that didn't match the code; remove unnecessary braces; NFC
llvm-svn: 228578
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 4e4c824a410..58751f1b4a4 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -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 && |