forked from OSchip/llvm-project
[X86] Fix a couple copy mistakes in v4i1 or/and/xor isel patterns.
VK1 was being used as the output of the copy to regclass, but it should be VK2/VK4. Shouldn't matter in practice though since VK1/VK2/VK4/VK8/VK16 are all identicaly and just have different VTs.
This commit is contained in:
parent
d95a10a7f9
commit
5228a5544b
|
@ -3071,11 +3071,11 @@ multiclass avx512_binop_pat<SDPatternOperator VOpNode, SDPatternOperator OpNode,
|
|||
def : Pat<(VOpNode VK2:$src1, VK2:$src2),
|
||||
(COPY_TO_REGCLASS (Inst
|
||||
(COPY_TO_REGCLASS VK2:$src1, VK16),
|
||||
(COPY_TO_REGCLASS VK2:$src2, VK16)), VK1)>;
|
||||
(COPY_TO_REGCLASS VK2:$src2, VK16)), VK2)>;
|
||||
def : Pat<(VOpNode VK4:$src1, VK4:$src2),
|
||||
(COPY_TO_REGCLASS (Inst
|
||||
(COPY_TO_REGCLASS VK4:$src1, VK16),
|
||||
(COPY_TO_REGCLASS VK4:$src2, VK16)), VK1)>;
|
||||
(COPY_TO_REGCLASS VK4:$src2, VK16)), VK4)>;
|
||||
}
|
||||
|
||||
defm : avx512_binop_pat<and, and, KANDWrr>;
|
||||
|
|
Loading…
Reference in New Issue