[PATCH] D80047: Don't tail merge EHPads
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 16:52:20 PDT 2020
aeubanks updated this revision to Diff 264384.
aeubanks added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80047/new/
https://reviews.llvm.org/D80047
Files:
llvm/lib/CodeGen/BranchFolding.cpp
Index: llvm/lib/CodeGen/BranchFolding.cpp
===================================================================
--- llvm/lib/CodeGen/BranchFolding.cpp
+++ llvm/lib/CodeGen/BranchFolding.cpp
@@ -1086,6 +1086,10 @@
if (PBB->hasEHPadSuccessor())
continue;
+ // Skip landing pads, can't tail merge these.
+ if (PBB->isEHPad())
+ continue;
+
// After block placement, only consider predecessors that belong to the
// same loop as IBB. The reason is the same as above when skipping loop
// header.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80047.264384.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/deb50e58/attachment-0001.bin>
More information about the llvm-commits
mailing list