From 37e080d8710e88832a169e4adf806292f1ecbed2 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Mon, 17 Jun 2019 22:37:37 +0000 Subject: [PATCH] [AMDGPU] Use custom inserter for gfx10 VOP2b This is part of the approved D63204 pending parent revision. This small change is in fact a part of the VOP2b legalization which does not technically belong to wave32 support, so extracted separately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363625 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/VOP2Instructions.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/AMDGPU/VOP2Instructions.td b/lib/Target/AMDGPU/VOP2Instructions.td index 4ce181f3f5d..e7be776817f 100644 --- a/lib/Target/AMDGPU/VOP2Instructions.td +++ b/lib/Target/AMDGPU/VOP2Instructions.td @@ -175,7 +175,9 @@ multiclass VOP2bInst .ret>, - Commutable_REV; + Commutable_REV { + let usesCustomInserter = !eq(P.NumSrcArgs, 2); + } def _sdwa : VOP2_SDWA_Pseudo { let AsmMatchConverter = "cvtSdwaVOP2b"; -- 2.40.0