]> granicus.if.org Git - llvm/commit
[EarlyCSE] Make PhiToCheck in removeMSSA() a set.
authorDavide Italiano <davide@freebsd.org>
Wed, 14 Jun 2017 19:29:53 +0000 (19:29 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 14 Jun 2017 19:29:53 +0000 (19:29 +0000)
commitea02a028001597ec77893c04d83525f02278092f
tree3ccd6f13991e6d0b9d257ae00d07458c886f7f2e
parente49b209a9ec53e967eeef11cdd26c1021308b9a0
[EarlyCSE] Make PhiToCheck in removeMSSA() a set.

This way we end up not looking at PHI args already removed.
MemSSA now goes through the updater so we can prune
it to avoid having redundant MemoryPHI arguments, but that
doesn't quite work for the general case.

Discussed with Daniel Berlin, fixes PR33406.

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