diff --git a/llvm/lib/Target/AMDGPU/VOPCInstructions.td b/llvm/lib/Target/AMDGPU/VOPCInstructions.td --- a/llvm/lib/Target/AMDGPU/VOPCInstructions.td +++ b/llvm/lib/Target/AMDGPU/VOPCInstructions.td @@ -760,7 +760,7 @@ // We need to use COPY_TO_REGCLASS to w/a the problem when ReplaceAllUsesWith() // complaints it cannot replace i1 <-> i64/i32 if node was not morphed in place. -multiclass ICMP_Pattern { +multiclass ICMP_Pattern { let WaveSizePredicate = isWave64 in def : GCNPat < (i64 (AMDGPUsetcc vt:$src0, vt:$src1, cond)), @@ -807,7 +807,7 @@ defm : ICMP_Pattern ; defm : ICMP_Pattern ; -multiclass FCMP_Pattern { +multiclass FCMP_Pattern { let WaveSizePredicate = isWave64 in def : GCNPat < (i64 (AMDGPUsetcc (vt (VOP3Mods vt:$src0, i32:$src0_modifiers)),