[NewGVN] Don't incorrectly reset the memory leader.
authorDavide Italiano <davide@freebsd.org>
Fri, 12 May 2017 15:22:45 +0000 (15:22 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 12 May 2017 15:22:45 +0000 (15:22 +0000)
commit41f5c7bcba78268607b94998ce0608fe2ed2bde0
treed73bf5e4d86be977e613d9eed15a0a276bd7dee2
parentfdcab2cbf2ef5bb753fc8542eebbaf9251dccbd6
[NewGVN] Don't incorrectly reset the memory leader.

This code was missing a check for stores, so we were thinking the
congruency class didn't have any memory members, and reset the
memory leader.

Differential Revision:  https://reviews.llvm.org/D33056

llvm-svn: 302905
llvm/lib/Transforms/Scalar/NewGVN.cpp
llvm/test/Transforms/NewGVN/pr32934.ll [new file with mode: 0644]