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:
b43332c
)
[CodeGen] Fix AtomicExpand invalidation issue caused by r247429.
author
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Sat, 12 Sep 2015 18:51:23 +0000
(18:51 +0000)
committer
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Sat, 12 Sep 2015 18:51:23 +0000
(18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247514
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AtomicExpandPass.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AtomicExpandPass.cpp
b/lib/CodeGen/AtomicExpandPass.cpp
index 2c2a08fbb5aafef1b8b49689d8e4b58e5583a94b..73102ccfece1006a23f2708a5f14e403b3380c45 100644
(file)
--- a/
lib/CodeGen/AtomicExpandPass.cpp
+++ b/
lib/CodeGen/AtomicExpandPass.cpp
@@
-505,8
+505,10
@@
bool AtomicExpand::isIdempotentRMW(AtomicRMWInst* RMWI) {
}
bool AtomicExpand::simplifyIdempotentRMW(AtomicRMWInst* RMWI) {
- if (auto ResultingLoad = TLI->lowerIdempotentRMWIntoFencedLoad(RMWI))
- return tryExpandAtomicLoad(ResultingLoad);
+ if (auto ResultingLoad = TLI->lowerIdempotentRMWIntoFencedLoad(RMWI)) {
+ tryExpandAtomicLoad(ResultingLoad);
+ return true;
+ }
return false;
}