diff options
author | Sam Kolton <Sam.Kolton@amd.com> | 2017-06-27 15:02:23 +0000 |
---|---|---|
committer | Sam Kolton <Sam.Kolton@amd.com> | 2017-06-27 15:02:23 +0000 |
commit | a179d25b99fec680d2430a07b6a35254c548e298 (patch) | |
tree | d8aa864ec684eb692a0d520c8231df45f20047fb /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | |
parent | 0bd79f416a2416a88803cceb1a59c218bb7639d1 (diff) | |
download | bcm5719-llvm-a179d25b99fec680d2430a07b6a35254c548e298.tar.gz bcm5719-llvm-a179d25b99fec680d2430a07b6a35254c548e298.zip |
[AMDGPU] SDWA: several fixes for V_CVT and VOPC instructions
Summary:
1. Instruction V_CVT_U32_F32 allow omod operand (see SIInstrInfo.td:1435). In fact this operand shouldn't be allowed here. This fix checks if SDWA pseudo instruction has OMod operand and then copy it.
2. There were several problems with support of VOPC instructions in SDWA peephole pass.
Reviewers: tstellar, arsenm, vpykhtin, airlied, kzhuravl
Subscribers: wdng, nhaehnle, yaxunl, dstuttard, tpr, sarnex, t-tye
Differential Revision: https://reviews.llvm.org/D34626
llvm-svn: 306413
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index 2b16289c723..22cede59086 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -153,7 +153,7 @@ protected: bool HasSDWAScalar; bool HasSDWASdst; bool HasSDWAMac; - bool HasSDWAClampVOPC; + bool HasSDWAOutModsVOPC; bool HasDPP; bool FlatAddressSpace; bool FlatInstOffsets; @@ -452,8 +452,8 @@ public: return HasSDWAMac; } - bool hasSDWAClampVOPC() const { - return HasSDWAClampVOPC; + bool hasSDWAOutModsVOPC() const { + return HasSDWAOutModsVOPC; } /// \brief Returns the offset in bytes from the start of the input buffer |