[all-commits] [llvm/llvm-project] 7bc2cd: [VP][DAGCombiner] Introduce generalized pattern ma...
Yeting Kuo via All-commits
all-commits at lists.llvm.org
Tue Feb 7 21:45:50 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7bc2cd614ec479d5ffacba6e80ce849cd922ffdf
https://github.com/llvm/llvm-project/commit/7bc2cd614ec479d5ffacba6e80ce849cd922ffdf
Author: Yeting Kuo <yeting.kuo at sifive.com>
Date: 2023-02-08 (Wed, 08 Feb 2023)
Changed paths:
M llvm/include/llvm/CodeGen/ISDOpcodes.h
M llvm/include/llvm/IR/VPIntrinsics.def
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
A llvm/test/CodeGen/RISCV/rvv/fold-vp-fadd-and-vp-fmul.ll
Log Message:
-----------
[VP][DAGCombiner] Introduce generalized pattern match for vp sdnodes.
The patch tries to solve duplicated combine work for vp sdnodes. The idea is to
introduce MatchConext that verifies specific patterns and generate specific node
infromation. There is two MatchConext in DAGCombiner. EmptyMatcher is for
normal nodes and VPMatcher is for vp nodes.
The idea of this patch is come form Simon Moll's proposal [0]. I only fixed some
minor issues and added few new features in this patch.
[0]: https://github.com/sx-aurora-dev/llvm-project/commit/c38a14484aa2945f3b05369560b65916dd832f76
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D141891
More information about the All-commits
mailing list