[GVNHoist] Don't hoist PHI nodes
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 20 Jul 2016 21:05:01 +0000 (21:05 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 20 Jul 2016 21:05:01 +0000 (21:05 +0000)
commitbd21012c6c01ea3f46d0533a09c3fc3c182c3759
tree23440e6a304894a5cf907e92d0a0880a0337d830
parent4c7718d51b743b621d7c215eff78004c5ea40cd8
[GVNHoist] Don't hoist PHI nodes

We hoisted PHIs without respecting their special insertion point in the
block, leading to verfier errors.

This fixes PR28626.

llvm-svn: 276181
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/test/Transforms/GVN/pr28626.ll [new file with mode: 0644]