diff options
author | Mitch Phillips <mitchphillips@outlook.com> | 2019-03-06 00:25:40 +0000 |
---|---|---|
committer | Mitch Phillips <mitchphillips@outlook.com> | 2019-03-06 00:25:40 +0000 |
commit | f0c21e2ff53a2745a325136f3812b4a0e6f61ea1 (patch) | |
tree | a0cae7a246d9c39ccddb709052b7264741268030 /llvm/lib/CodeGen/AtomicExpandPass.cpp | |
parent | 13bbcb3264f7afec8b70386f5b1cba8d7e2e2aed (diff) | |
download | bcm5719-llvm-f0c21e2ff53a2745a325136f3812b4a0e6f61ea1.tar.gz bcm5719-llvm-f0c21e2ff53a2745a325136f3812b4a0e6f61ea1.zip |
Revert "[AtomicExpand] Allow libcall expansion for non-zero address spaces" for buildbot failures.
llvm-svn: 355461
Diffstat (limited to 'llvm/lib/CodeGen/AtomicExpandPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AtomicExpandPass.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index 10dd21d1ef9..c247a8afcf7 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp @@ -1691,14 +1691,8 @@ bool AtomicExpand::expandAtomicOpToLibcall( } // 'ptr' argument. - // note: This assumes all address spaces share a common libfunc - // implementation and that addresses are convertable. For systems without - // that property, we'd need to extend this mechanism to support AS-specific - // families of atomic intrinsics. - auto PtrTypeAS = PointerOperand->getType()->getPointerAddressSpace(); - Value *PtrVal = Builder.CreateBitCast(PointerOperand, - Type::getInt8PtrTy(Ctx, PtrTypeAS)); - PtrVal = Builder.CreateAddrSpaceCast(PtrVal, Type::getInt8PtrTy(Ctx)); + Value *PtrVal = + Builder.CreateBitCast(PointerOperand, Type::getInt8PtrTy(Ctx)); Args.push_back(PtrVal); // 'expected' argument, if present. |