[VE][NFC] Update comments
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 30 Nov 2020 17:53:28 +0000 (02:53 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 30 Nov 2020 17:56:16 +0000 (02:56 +0900)
Update comments.  I forgot to update it previously when I modified code.

llvm/lib/Target/VE/VEFrameLowering.cpp

index 7042068..9e97d0e 100644 (file)
@@ -493,8 +493,8 @@ void VEFrameLowering::determineCalleeSaves(MachineFunction &MF,
                                            RegScavenger *RS) const {
   TargetFrameLowering::determineCalleeSaves(MF, SavedRegs, RS);
 
-  // Functions having BP or stack objects need to emit prologue and epilogue
-  // to allocate local buffer on the stack.
+  // Functions having BP need to emit prologue and epilogue to allocate local
+  // buffer on the stack even if the function is a leaf function.
   if (isLeafProc(MF) && !hasBP(MF)) {
     VEMachineFunctionInfo *FuncInfo = MF.getInfo<VEMachineFunctionInfo>();
     FuncInfo->setLeafProc(true);