[PATCH] D33056: [NewGVN] When a store becomes the leader, update the memory leader for the class

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 12:07:55 PDT 2017


davide added a comment.

I think setting the memory leader to `nullptr` is not quite right. 
We do it

  if (OldClass->memory_empty()) {
    OldClass->setMemoryLeader(nullptr);

because we think there are no memory members, but this is inconsistent with the fact we have a `StoreInst` as leader and a `StoreCount` == 1.


https://reviews.llvm.org/D33056





More information about the llvm-commits mailing list