[PATCH] D119942: [CodeGen] Return better Changed status from LocalStackSlotAllocation

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 16 07:44:35 PST 2022


foad created this revision.
foad added a reviewer: piotr.
Herald added a subscriber: hiraditya.
foad requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119942

Files:
  llvm/lib/CodeGen/LocalStackSlotAllocation.cpp


Index: llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
===================================================================
--- llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
@@ -118,7 +118,7 @@
   // 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());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119942.409257.patch
Type: text/x-patch
Size: 572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/52fa979c/attachment.bin>


More information about the llvm-commits mailing list