projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4771d3
)
Adds comments
author
Peizhao Ou
<peizhaoo@uci.edu>
Wed, 4 Apr 2018 07:57:34 +0000
(
00:57
-0700)
committer
Peizhao Ou
<peizhaoo@uci.edu>
Wed, 4 Apr 2018 07:57:34 +0000
(
00:57
-0700)
lib/CodeGen/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/CodeGenPrepare.cpp
b/lib/CodeGen/CodeGenPrepare.cpp
index 3eaeaa2360c9ab89e434faa9053c887b98f519a7..0191a09f49c4ad0712f14411fbc6e771995aa641 100644
(file)
--- 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<LoadInst*, 1> MonotonicLoadInsts;
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) {
if (I->isAtomic()) {