aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2022-02-16 10:58:54 +0000
committerJay Foad <jay.foad@amd.com>2022-02-17 09:31:41 +0000
commit50ddb5d2d12087c9b0c8da021179739324214e95 (patch)
tree77e2f120b5548455a38de33b8f41e74b9887302d /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parentf0092f9ded34ce733d36a302fd1f33f134418594 (diff)
downloadllvm-50ddb5d2d12087c9b0c8da021179739324214e95.zip
llvm-50ddb5d2d12087c9b0c8da021179739324214e95.tar.gz
llvm-50ddb5d2d12087c9b0c8da021179739324214e95.tar.bz2
[CodeGen] Return better Changed status from LocalStackSlotAllocation
Differential Revision: https://reviews.llvm.org/D119942
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r--llvm/lib/CodeGen/LocalStackSlotAllocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
index 37fd3e4..75c59d9 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());