commit | 7e64ade2ef1af72db235f6d76ecd319abc09690e | [log] [tgz] |
---|---|---|
author | Philip Reames <preames@rivosinc.com> | Fri May 09 08:09:46 2025 -0700 |
committer | GitHub <noreply@github.com> | Fri May 09 08:09:46 2025 -0700 |
tree | 2d2678e05d317a1a72b0ed50e6391a24b62bafc8 | |
parent | 20d6def0ae45b0c7ebcc1627d299689fa34e8cc8 [diff] |
[RISCV] Extend zvqdot matching to handle reduction trees (#138965) Now that we have matching for vqdot in it's basic variants, we can extend the matcher to handle reduction trees instead of individual reductions. This is important as we canonicalize reductions by performing a tree in the vector domain before the root reduction instruction. The particular approach taken here has the unfortunate implication that non-matches visit the entire reduction tree once for each time the reduction root is visited in DAG. While conceptually problematic for compile time, this is probably fine in practice as we should only visit the root once per pass of DAGCombine. I don't really see a better solution - suggestions welcome. --------- Co-authored-by: Luke Lau <luke_lau@icloud.com>
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.