summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-11-13 07:01:11 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-11-13 07:01:11 +0000
commitf86e4b72660390bde899306bb1879da994281b2a (patch)
tree59ac334f56039064686b2973accfabfa84e3f4e3 /llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
parentd9445c49ad47c227f5981ad1f8f211dff9aaa9f1 (diff)
downloadbcm5719-llvm-f86e4b72660390bde899306bb1879da994281b2a.tar.gz
bcm5719-llvm-f86e4b72660390bde899306bb1879da994281b2a.zip
[AMDGPU] Add f16 support (VI+)
Differential Revision: https://reviews.llvm.org/D25975 llvm-svn: 286753
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
index 7f9e9cded63..9ee2ededbb0 100644
--- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
+++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
@@ -91,6 +91,7 @@ static bool canShrink(MachineInstr &MI, const SIInstrInfo *TII,
default: return false;
case AMDGPU::V_MAC_F32_e64:
+ case AMDGPU::V_MAC_F16_e64:
if (!isVGPR(Src2, TRI, MRI) ||
TII->hasModifiersSet(MI, AMDGPU::OpName::src2_modifiers))
return false;
OpenPOWER on IntegriCloud