summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-13 01:43:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-08-13 01:43:51 +0000
commit3cc1e0066d121480ddfeb4879817eabf903cbcdd (patch)
treea16d35c7b22d2a36903e32f59c19d014f8553065 /llvm/lib
parent44f6d694b38a6294503da3464c778b021c2da42d (diff)
downloadbcm5719-llvm-3cc1e0066d121480ddfeb4879817eabf903cbcdd.tar.gz
bcm5719-llvm-3cc1e0066d121480ddfeb4879817eabf903cbcdd.zip
AMDGPU: Fix missing test for addressing mode with odd offsets
Add test if the constant offset looks unaligned. llvm-svn: 278589
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index e893313e6c0..e71be164fc0 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -361,6 +361,7 @@ bool SITargetLowering::isLegalAddressingMode(const DataLayout &DL,
case AMDGPUAS::CONSTANT_ADDRESS: {
// If the offset isn't a multiple of 4, it probably isn't going to be
// correctly aligned.
+ // FIXME: Can we get the real alignment here?
if (AM.BaseOffs % 4 != 0)
return isLegalMUBUFAddressingMode(AM);
OpenPOWER on IntegriCloud