]> granicus.if.org Git - llvm/commit
NewGVN: Fix PR32403 - Handling of undef in phis was not quite correct
authorDaniel Berlin <dberlin@dberlin.org>
Fri, 24 Mar 2017 05:30:34 +0000 (05:30 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Fri, 24 Mar 2017 05:30:34 +0000 (05:30 +0000)
commitfdd2b651970f1ee72cae3d4f5d0ce48bba2d262f
tree886db6d81b109997956c9f8d24af7a868947f927
parentd738e6a7b38fc5dae24f2a83d7ff54d4a801bd75
NewGVN: Fix PR32403 - Handling of undef in phis was not quite correct
due to LLVM's view of phi nodes.  It would cause NewGVN not to fixpoint
in some interesting edge cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NewGVN.cpp
test/Transforms/NewGVN/pr32403.ll [new file with mode: 0644]