From: Ahmed Bougacha Date: Sat, 12 Sep 2015 18:51:23 +0000 (+0000) Subject: [CodeGen] Fix AtomicExpand invalidation issue caused by r247429. X-Git-Tag: llvmorg-3.8.0-rc1~9664 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49b531a08d13fbb3a2099c7dbb38e212a9735478;p=platform%2Fupstream%2Fllvm.git [CodeGen] Fix AtomicExpand invalidation issue caused by r247429. llvm-svn: 247514 --- diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index 2c2a08fb..73102cc 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/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; }