[PATCH] D129860: Inliner: don't mark call sites as 'nounwind' if that would be redundant
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 07:19:07 PDT 2022
nhaehnle marked an inline comment as done.
nhaehnle added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:2205
+ CalleeIsNoUnwind = F->doesNotThrow();
+ if (!CalleeIsNoUnwind)
+ CI->setDoesNotThrow();
----------------
nikic wrote:
> Writing this as `!CI->doesNotThrow()` might be more elegant? That checks the function attribute as well.
I like that idea.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129860/new/
https://reviews.llvm.org/D129860
More information about the llvm-commits
mailing list