summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-11 01:35:07 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-11 01:35:07 +0000
commitc5830f5f05a4ecb6ae0db0aa386af733f6113b77 (patch)
treedc41c6e89397d82dce59fe730eff6c7eb97178a1 /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
parent383e72fcfebe5306a152efdab19ad5f532248ed4 (diff)
downloadbcm5719-llvm-c5830f5f05a4ecb6ae0db0aa386af733f6113b77.tar.gz
bcm5719-llvm-c5830f5f05a4ecb6ae0db0aa386af733f6113b77.zip
AtomicExpand: Don't crash on non-0 alloca
This now produces garbage on AMDGPU with a call to an nonexistent, anonymous libcall but won't assert. llvm-svn: 363022
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
index 64e710fba7f..cdb406d27ad 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -524,6 +524,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
setHasMultipleConditionRegisters(true);
setMinCmpXchgSizeInBits(32);
+ setSupportsUnalignedAtomics(false);
PredictableSelectIsExpensive = false;
OpenPOWER on IntegriCloud