[PATCH] D28312: NewGVN: Fix PR 31501.

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 13:30:14 PST 2017


dberlin created this revision.
dberlin added a reviewer: davide.
dberlin added a subscriber: llvm-commits.

LLVM's non-standard notion of phi nodes means we can't both try to substitute for undef in phi nodes *and* use phi nodes as leaders all the time. This changes NewGVN to use the same semantics as SimplifyPHINode to decide which phi nodes are equivalent.


https://reviews.llvm.org/D28312

Files:
  lib/Transforms/Scalar/NewGVN.cpp
  test/Transforms/NewGVN/cyclic-phi-handling.ll
  test/Transforms/NewGVN/pr31501.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28312.83117.patch
Type: text/x-patch
Size: 16250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/26d4be55/attachment.bin>


More information about the llvm-commits mailing list