[llvm] 50ddb5d - [CodeGen] Return better Changed status from LocalStackSlotAllocation

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 17 01:32:09 PST 2022


Author: Jay Foad
Date: 2022-02-17T09:31:41Z
New Revision: 50ddb5d2d12087c9b0c8da021179739324214e95

URL: https://github.com/llvm/llvm-project/commit/50ddb5d2d12087c9b0c8da021179739324214e95
DIFF: https://github.com/llvm/llvm-project/commit/50ddb5d2d12087c9b0c8da021179739324214e95.diff

LOG: [CodeGen] Return better Changed status from LocalStackSlotAllocation

Differential Revision: https://reviews.llvm.org/D119942

Added: 
    

Modified: 
    llvm/lib/CodeGen/LocalStackSlotAllocation.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
index 37fd3e4853ac..75c59d9b5814 100644
--- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
@@ -118,7 +118,7 @@ bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
   // If the target doesn't want/need this pass, or if there are no locals
   // to consider, early exit.
   if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF))
-    return true;
+    return false;
 
   // Make sure we have enough space to store the local offsets.
   LocalOffsets.resize(MFI.getObjectIndexEnd());


        


More information about the llvm-commits mailing list