[PATCH] Fix MemoryDependenceAnalysis in cases where QueryInstr is a CmpXchg or a AtomicRMW

Philip Reames listmail at philipreames.com
Fri Aug 29 17:14:35 PDT 2014


LGTM

================
Comment at: lib/Analysis/MemoryDependenceAnalysis.cpp:456
@@ -456,1 +455,3 @@
+        }
+        else if (auto *QuerySI = dyn_cast<StoreInst>(QueryInst)) {
           if (!QuerySI->isSimple())
----------------
nitpick: } else if (c) {

http://reviews.llvm.org/D5019






More information about the llvm-commits mailing list