[PATCH] D87965: [InstCombine] replace phi values from unreachable blocks with 'undef'
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 06:02:20 PDT 2020
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
lg
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:2816
+ replaceInstUsesWith(*Prev, UndefValue::get(Prev->getType()));
eraseInstFromFunction(*Prev);
----------------
This needs a motivational comment
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87965/new/
https://reviews.llvm.org/D87965
More information about the llvm-commits
mailing list