From: Matt Arsenault Date: Thu, 10 Sep 2020 16:08:41 +0000 (-0400) Subject: LocalStackSlotAllocation: Swap order of check X-Git-Tag: llvmorg-13-init~11870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d8a496356dbdf4fcc17caa69fe489d8d87068ac;p=platform%2Fupstream%2Fllvm.git LocalStackSlotAllocation: Swap order of check --- 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.