Fix a misleading comment.
authorAkira Hatanaka <ahatanaka@mips.com>
Fri, 11 May 2012 01:45:15 +0000 (01:45 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Fri, 11 May 2012 01:45:15 +0000 (01:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsRegisterInfo.cpp

index aa632235d2dfed16aff0cfb1e905a59a745af22e..37b0ed2666f4885ec10272c28a022b55732adaf4 100644 (file)
@@ -124,7 +124,7 @@ getReservedRegs(const MachineFunction &MF) const {
     Reserved.set(Mips::GP_64);
   }
 
-  // If this function has dynamic allocas, reserve FP.
+  // Reserve FP if this function should have a dedicated frame pointer register.
   if (MF.getTarget().getFrameLowering()->hasFP(MF)) {
     Reserved.set(Mips::FP);
     Reserved.set(Mips::FP_64);