Skip to content

Commit 1219561

Browse files
committed
[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. llvm-svn: 363625
1 parent 8fbb88f commit 1219561

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/AMDGPU/VOP2Instructions.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ multiclass VOP2bInst <string opName,
175175
let SchedRW = [Write32Bit, WriteSALU] in {
176176
let Uses = !if(useSGPRInput, [VCC, EXEC], [EXEC]), Defs = [VCC] in {
177177
def _e32 : VOP2_Pseudo <opName, P, VOPPatOrNull<node,P>.ret>,
178-
Commutable_REV<revOp#"_e32", !eq(revOp, opName)>;
178+
Commutable_REV<revOp#"_e32", !eq(revOp, opName)> {
179+
let usesCustomInserter = !eq(P.NumSrcArgs, 2);
180+
}
179181

180182
def _sdwa : VOP2_SDWA_Pseudo <opName, P> {
181183
let AsmMatchConverter = "cvtSdwaVOP2b";

0 commit comments

Comments
 (0)