diff options
| author | Marek Olsak <marek.olsak@amd.com> | 2017-05-24 14:53:50 +0000 |
|---|---|---|
| committer | Marek Olsak <marek.olsak@amd.com> | 2017-05-24 14:53:50 +0000 |
| commit | 8973a0a22ca6e1764bf7f0d87460420cbcc80c9e (patch) | |
| tree | 26be58ce762a16e2d3d4f43091801460ee8ae682 /llvm/lib/Target/AMDGPU/Utils | |
| parent | edc7849b1bdd2250c0fb1ff679ef80b9aee72891 (diff) | |
| download | bcm5719-llvm-8973a0a22ca6e1764bf7f0d87460420cbcc80c9e.tar.gz bcm5719-llvm-8973a0a22ca6e1764bf7f0d87460420cbcc80c9e.zip | |
Revert "AMDGPU: Fold CI-specific complex SMRD patterns into existing complex patterns"
This reverts commit e065977c4b5f68ab845400b256f6a3822b1325fa.
It doesn't work. S_LOAD_DWORD_IMM_ci and friends aren't selected by any of
the patterns, so it was putting 32-bit literals into the 8-bit field.
llvm-svn: 303754
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp index e14587e413a..630f469eabf 100644 --- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp +++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp @@ -763,7 +763,7 @@ int64_t getSMRDEncodedOffset(const MCSubtargetInfo &ST, int64_t ByteOffset) { bool isLegalSMRDImmOffset(const MCSubtargetInfo &ST, int64_t ByteOffset) { int64_t EncodedOffset = getSMRDEncodedOffset(ST, ByteOffset); - return isSI(ST) || isCI(ST) ? ByteOffset % 4 == 0 && isUInt<8>(EncodedOffset) : + return isSI(ST) || isCI(ST) ? isUInt<8>(EncodedOffset) : isUInt<20>(EncodedOffset); } } // end namespace AMDGPU |

