[InstCombine] replace zombie unreachable values with 'undef' before erasing
authorSanjay Patel <spatel@rotateright.com>
Sun, 20 Sep 2020 16:21:01 +0000 (12:21 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 20 Sep 2020 16:25:08 +0000 (12:25 -0400)
commitcf75e83275d16f9172fa5ab448a981afdadd34d0
tree91589b72fd9dabaf5bf79464ef38623c3f453891
parent2ae182258c49724e4daaae196de829ea65c116e8
[InstCombine] replace zombie unreachable values with 'undef' before erasing

The test (currently crashing) is reduced from the example provided
in the post-commit discussion in D87149.

Differential Revision: https://reviews.llvm.org/D87965
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/phi.ll