Moving landingpads into successor basic blocks makes the verifier sad. I assume the same is true for cleanuppads. Any other EH related pads that need to be put here? Bugpoint-reduced C++ testcase is included.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with tweaks
lib/Transforms/Scalar/Sink.cpp | ||
---|---|---|
172–173 ↗ | (On Diff #39621) | This can be made more concise by writing it as isa<TerminatorInst>(Inst) || isa<PHINode(Inst) || Inst->isEHPad() |
test/Transforms/Sink/landingpad.ll | ||
4 ↗ | (On Diff #39621) | Would you mind renaming these functions something like f, g, and h ? |
38–39 ↗ | (On Diff #39621) | These attributes are not really relevant to this test case. |