[PATCH] D57254: [Outliner] Set nounwind for outlined functions
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 26 05:27:29 PST 2019
dmgreen added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineOutliner.cpp:1134
+ }))
+ F->addFnAttr(Attribute::NoUnwind);
+
----------------
efriedma wrote:
> The outliner will refuse to outline calls that might unwind; you don't need the hasFnAttribute check. (It might be possible in theory, but it would be complicated to construct the correct unwind info.)
That would certainly make this simpler.
I don't see any code that would stop calls that may throw from being outlined, though. And some examples seem to show it is happen at the moment (looking at aarch64, if I'm getting this right).
Do you think it _should_ be disabled for unwindable calls? It seems to work at the moment for the simple examples I attempted.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57254/new/
https://reviews.llvm.org/D57254
More information about the llvm-commits
mailing list