[PATCH] D109917: [InstCombine] Improve TryToSink for side-effecting calls that would be trivially dead
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 23:08:44 PDT 2021
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:3667
+ // Cannot move control-flow-involving instructions.
+ if (isa<PHINode>(I) || I->isEHPad() || I->isTerminator())
return false;
----------------
What if `I` has implicit control flow, e.g. may call system exit?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109917/new/
https://reviews.llvm.org/D109917
More information about the llvm-commits
mailing list