[PATCH] D87149: [InstCombine] erase instructions leading up to unreachable
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 05:29:03 PDT 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:2806
+ Instruction *Prev = I.getPrevNonDebugInstruction();
+ if (Prev && Prev->use_empty() && !Prev->isEHPad() &&
+ isGuaranteedToTransferExecutionToSuccessor(Prev)) {
----------------
Is there any testcase with non-empty use list?
I'd think we could RAUW it with `undef`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87149/new/
https://reviews.llvm.org/D87149
More information about the llvm-commits
mailing list