[PATCH] D28084: Value number stores and memory states so we can detect when memorystates are equivalent (IE store of same value to memory).Tests coming.

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 16:28:56 PST 2016


dberlin added inline comments.


================
Comment at: lib/Transforms/Scalar/NewGVN.cpp:1311
+  MemoryAccess *AllSameValue = nullptr;
+  // See if all arguments are the same, ignoring unreachable arguments
+  for (unsigned i = 0, e = MP->getNumOperands(); i < e; ++i) {
----------------
It would be nice to share this part with performSymbolicPHIEvaluation, but we use a different lookup.
Thoughts welcome.



https://reviews.llvm.org/D28084





More information about the llvm-commits mailing list