Adds comments
authorPeizhao Ou <peizhaoo@uci.edu>
Wed, 4 Apr 2018 07:57:34 +0000 (00:57 -0700)
committerPeizhao Ou <peizhaoo@uci.edu>
Wed, 4 Apr 2018 07:57:34 +0000 (00:57 -0700)
lib/CodeGen/CodeGenPrepare.cpp

index 3eaeaa2360c9ab89e434faa9053c887b98f519a7..0191a09f49c4ad0712f14411fbc6e771995aa641 100644 (file)
@@ -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<LoadInst*, 1> MonotonicLoadInsts;
   for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
     if (I->isAtomic()) {