]> granicus.if.org Git - llvm/commit
[NewGVN] Fixup store count for the `initial` congruency class.
authorDavide Italiano <davide@freebsd.org>
Wed, 11 Jan 2017 23:41:24 +0000 (23:41 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 11 Jan 2017 23:41:24 +0000 (23:41 +0000)
commitc082fcc6ffb65151090894f8af437245989298f9
tree8e652b691e302b179b121fe061e6d1533282e902
parent4509ae413a16c3be0d4690b7ea55361ff7a5b032
[NewGVN] Fixup store count for the `initial` congruency class.

It was always zero. When we move a store from `initial` to its
own congruency class, we end up with a negative store count, which
is obviously wrong.
Also, while here, change StoreCount to be signed so that the assertions
actually fire.

Ack'ed by Daniel Berlin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291725 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NewGVN.cpp