[PATCH] D12992: invariant.group handling in GVN

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 10:54:27 PDT 2015

dberlin added a subscriber: dberlin.

Comment at: lib/Analysis/MemoryDependenceAnalysis.cpp:403
@@ +402,3 @@
+    return MemDepResult::getUnknown();
+  auto *InvariantGroupMD = LI->getMetadata(LLVMContext::MD_invariant_group);
Well, it's safe, if you verify the use is in LI->getParent()->getParent(), no?


More information about the llvm-commits mailing list