[PATCH] D135488: [codegen][WIP] Display stack layouts in console

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 19 11:19:02 PDT 2022


rnk added a comment.

I think I was confused in that conversation because I wasn't sure where in the pass pipeline this was going to run. I heard various statements like "lost after ISel" and to me, ISel is like the first step of codegen, it comes before register allocation. What you've done makes sense to me.

As you say, you are reconstructing some debug info by iterating over the spills rather than pulling it directly from the previous passes for handling dbg values, but that's probably fine.

I could always be wrong, but I suspect that most stack usage is attributable to escaped allocas for C++ temporary aggregates (strings, etc), and we can be pretty confident that that info is correct.


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