[PATCH] D113105: [InstCombine] Extend stacksave/restore elimination
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 01:48:01 PST 2021
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Seems fine.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1813-1814
+ for (++BI; &*BI != II; ++BI) {
+ if (Classify(&*BI) == ClassifyResult::None)
+ continue;
+
----------------
nextsilicon-itay-bookstein wrote:
> lebedev.ri wrote:
> > What about stackrestore from the same stacksave?
> Then it will have been eliminated when it was the subject of the enclosing switch statement, before this one was. I will add an appropriate comment.
I'm mainly highlighting that it might not have already happened because of the processing order.
It would be really hard to come up with an appropriate test manually,
but i suspect it is possible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113105/new/
https://reviews.llvm.org/D113105
More information about the llvm-commits
mailing list