[PATCH] D61089: [Reassociation] Place moved instructions after landing pads
David Greene via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 12:53:05 PDT 2019
greened marked an inline comment as done.
greened added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/Reassociate.cpp:874
+ // the landingpad.
+ while (isa<PHINode>(InsertPt) || isa<LandingPadInst>(InsertPt))
+ ++InsertPt;
----------------
efriedma wrote:
> Explicitly checking for LandingPad isn't sufficient on Windows. There are two issues: one, you need to use isEHPad() to check for all the relevant exception-handling instructions, and two, you can't insert a negate into a block with a catchswitch.
This code moves the negate around within the local block, so presumably the negate is already in the block and therefore there should be no `catchswitch`, right?
I will update this to use `isEHPad`. Thanks!
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61089/new/
https://reviews.llvm.org/D61089
More information about the llvm-commits
mailing list