From: Peizhao Ou Date: Wed, 4 Apr 2018 07:57:34 +0000 (-0700) Subject: Adds comments X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9ce57dca39b7ca9345ee6ca15b9a6a9394f7c075;p=oota-llvm.git Adds comments --- diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp index 3eaeaa2360c..0191a09f49c 100644 --- a/lib/CodeGen/CodeGenPrepare.cpp +++ b/lib/CodeGen/CodeGenPrepare.cpp @@ -1422,7 +1422,8 @@ bool CodeGenPrepare::runOnFunction(Function &F) { // XXX-comment: Delay dealing with relaxed loads in this function to avoid // further changes done by other passes (e.g., SimplifyCFG). - // Collect all the relaxed loads. + // Collect all the relaxed loads. Note that loads with release should have + // been treated as relaxed loads in earlier passes. SmallSet MonotonicLoadInsts; for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) { if (I->isAtomic()) {