[llvm] r247514 - [CodeGen] Fix AtomicExpand invalidation issue caused by r247429.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 12 11:51:23 PDT 2015
Author: ab
Date: Sat Sep 12 13:51:23 2015
New Revision: 247514
URL: http://llvm.org/viewvc/llvm-project?rev=247514&view=rev
Log:
[CodeGen] Fix AtomicExpand invalidation issue caused by r247429.
Modified:
llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp
Modified: llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp?rev=247514&r1=247513&r2=247514&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/AtomicExpandPass.cpp Sat Sep 12 13:51:23 2015
@@ -505,8 +505,10 @@ bool AtomicExpand::isIdempotentRMW(Atomi
}
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;
}
More information about the llvm-commits
mailing list