[PATCH] D36073: [CGP] Extends the scope of optimizeMemoryInst optimization
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 04:39:38 PDT 2017
mkazantsev added inline comments.
================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:3414
+ PI->replaceAllUsesWith(V);
+ if (auto PHI = dyn_cast<PHINode>(PI))
+ AllPhiNodes.erase(PHI);
----------------
In such cases it needs to be `auto *PHI`.
https://reviews.llvm.org/D36073
More information about the llvm-commits
mailing list