diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
| commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
| tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /lib/CodeGen/AtomicExpandPass.cpp | |
| parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/AtomicExpandPass.cpp')
| -rw-r--r-- | lib/CodeGen/AtomicExpandPass.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AtomicExpandPass.cpp b/lib/CodeGen/AtomicExpandPass.cpp index 7042bc997223..f2615edaece2 100644 --- a/lib/CodeGen/AtomicExpandPass.cpp +++ b/lib/CodeGen/AtomicExpandPass.cpp @@ -98,8 +98,8 @@ namespace {          CreateCmpXchgInstFun CreateCmpXchg);      bool expandAtomicCmpXchg(AtomicCmpXchgInst *CI); -    bool isIdempotentRMW(AtomicRMWInst *AI); -    bool simplifyIdempotentRMW(AtomicRMWInst *AI); +    bool isIdempotentRMW(AtomicRMWInst *RMWI); +    bool simplifyIdempotentRMW(AtomicRMWInst *RMWI);      bool expandAtomicOpToLibcall(Instruction *I, unsigned Size, unsigned Align,                                   Value *PointerOperand, Value *ValueOperand, @@ -379,8 +379,8 @@ LoadInst *AtomicExpand::convertAtomicLoadToIntegerType(LoadInst *LI) {    NewLI->setAlignment(LI->getAlignment());    NewLI->setVolatile(LI->isVolatile());    NewLI->setAtomic(LI->getOrdering(), LI->getSyncScopeID()); -  DEBUG(dbgs() << "Replaced " << *LI << " with " << *NewLI << "\n"); -   +  LLVM_DEBUG(dbgs() << "Replaced " << *LI << " with " << *NewLI << "\n"); +    Value *NewVal = Builder.CreateBitCast(NewLI, LI->getType());    LI->replaceAllUsesWith(NewVal);    LI->eraseFromParent(); @@ -462,7 +462,7 @@ StoreInst *AtomicExpand::convertAtomicStoreToIntegerType(StoreInst *SI) {    NewSI->setAlignment(SI->getAlignment());    NewSI->setVolatile(SI->isVolatile());    NewSI->setAtomic(SI->getOrdering(), SI->getSyncScopeID()); -  DEBUG(dbgs() << "Replaced " << *SI << " with " << *NewSI << "\n"); +  LLVM_DEBUG(dbgs() << "Replaced " << *SI << " with " << *NewSI << "\n");    SI->eraseFromParent();    return NewSI;  } @@ -943,7 +943,7 @@ AtomicCmpXchgInst *AtomicExpand::convertCmpXchgToIntegerType(AtomicCmpXchgInst *                                              CI->getSyncScopeID());    NewCI->setVolatile(CI->isVolatile());    NewCI->setWeak(CI->isWeak()); -  DEBUG(dbgs() << "Replaced " << *CI << " with " << *NewCI << "\n"); +  LLVM_DEBUG(dbgs() << "Replaced " << *CI << " with " << *NewCI << "\n");    Value *OldVal = Builder.CreateExtractValue(NewCI, 0);    Value *Succ = Builder.CreateExtractValue(NewCI, 1);  | 
