[PATCH] D135488: [codegen] Add a remarks based Stack Layout Analysis pass

Francis Visoiu Mistrih via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 11 12:05:10 PST 2023


thegameg accepted this revision.
thegameg added a comment.
This revision is now accepted and ready to land.

Looks great with the leftover minor changes, feel free to land this, thanks! I'll give this a try internally and provide feedback if any.



================
Comment at: llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp:55
+    Variable,       // a Slot used to store a local data (could be a tmp)
+    Error           // Its an error for a slot to have this type
+  };
----------------
paulkirth wrote:
> thegameg wrote:
> > 
> Good catch! TY
I also suggested `Invalid` instead of `Error` but it's up to you.


================
Comment at: llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp:110
+
+  std::string genStackOffsetPrefix(int I) const {
+    // Negative offsets will print a leading `-`, so only add `+`
----------------
paulkirth wrote:
> thegameg wrote:
> > Is this still worth being a separate function?
> yeah, probably not 
Looks like this stayed around unused


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135488/new/

https://reviews.llvm.org/D135488



More information about the cfe-commits mailing list