[GVN] Set phi entries of unreachable predecessors to poison instead of undef
authorNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>
Thu, 30 Dec 2021 13:25:57 +0000 (13:25 +0000)
committerNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>
Thu, 30 Dec 2021 14:47:24 +0000 (14:47 +0000)
commit84b285d6eb9d52f467fa710f2c9f490a0584c0b2
tree66bc0679b66e10bc454e0dc639123954eba13d2b
parent9b8f9d33dbbcd6525ab4d582cb9abb6f98e3601c
[GVN] Set phi entries of unreachable predecessors to poison instead of undef
This matches NewGVN's behavior.
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/test/Transforms/GVN/assume-equal.ll
llvm/test/Transforms/GVN/calls-nonlocal.ll
llvm/test/Transforms/GVN/condprop.ll
llvm/test/Transforms/GVN/equality-assume.ll
llvm/test/Transforms/GVN/preserve-memoryssa.ll