X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FCodeGen%2FAtomicExpandPass.cpp;fp=lib%2FCodeGen%2FAtomicExpandPass.cpp;h=73102ccfece1006a23f2708a5f14e403b3380c45;hp=2c2a08fbb5aafef1b8b49689d8e4b58e5583a94b;hb=3034c714095b85e50766e1e39d732516f9e399ab;hpb=b43332c8d1ef6574f645a18e8b244de2a4057228 diff --git a/lib/CodeGen/AtomicExpandPass.cpp b/lib/CodeGen/AtomicExpandPass.cpp index 2c2a08fbb5a..73102ccfece 100644 --- 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; }