[PATCH] D87965: [InstCombine] replace phi values from unreachable blocks with 'undef'
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 09:24:10 PDT 2020
spatel marked an inline comment as done.
spatel added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:2816
+ replaceInstUsesWith(*Prev, UndefValue::get(Prev->getType()));
eraseInstFromFunction(*Prev);
----------------
lebedev.ri wrote:
> This needs a motivational comment
Thanks! Will add comment and change the patch title/description on commit.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87965/new/
https://reviews.llvm.org/D87965
More information about the llvm-commits
mailing list