aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-09-10 12:08:41 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2020-09-16 12:56:40 -0400
commit8d8a496356dbdf4fcc17caa69fe489d8d87068ac (patch)
tree0f0eb329a5693f3558d9ed6963fb20ecdab737a1 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parent4cff1b40dacf6a5489b09657d94ea4757b8cd3b0 (diff)
downloadllvm-8d8a496356dbdf4fcc17caa69fe489d8d87068ac.zip
llvm-8d8a496356dbdf4fcc17caa69fe489d8d87068ac.tar.gz
llvm-8d8a496356dbdf4fcc17caa69fe489d8d87068ac.tar.bz2
LocalStackSlotAllocation: Swap order of check
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 204fb55..ec3cce3 100644
--- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
@@ -117,7 +117,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 (!TRI->requiresVirtualBaseRegisters(MF) || LocalObjectCount == 0)
+ if (LocalObjectCount == 0 || !TRI->requiresVirtualBaseRegisters(MF))
return true;
// Make sure we have enough space to store the local offsets.