From 9ce57dca39b7ca9345ee6ca15b9a6a9394f7c075 Mon Sep 17 00:00:00 2001 From: Peizhao Ou Date: Wed, 4 Apr 2018 00:57:34 -0700 Subject: [PATCH] Adds comments --- lib/CodeGen/CodeGenPrepare.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) { -- 2.34.1