llvm/llvm-project

[DAG] SDPatternMatch - add m_BinOp/m_c_BinOp variants driven by TLI.isBinOp/isCommutativeBinOp

Aberta

#84.940 aberto em 12 de mar. de 2024

 (13 comentários) (0 reação) (1 responsável)C++ (10.782 forks)batch import
good first issuellvm:SelectionDAG

Métricas do repositório

Stars
 (26.378 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

As noticed on #84759 - we should be able to allow folds to generally match any binary ops that are recognized by the TLI.isBinOp/isCommutativeBinOp callbacks, allowing us to match target binops in generic dag combines.

CC @mshockwave

Guia do colaborador