commit | b5aaf9d988ff2dc652c86271b181bf0497eb97cb | [log] [tgz] |
---|---|---|
author | Philip Reames <preames@rivosinc.com> | Wed Jun 18 08:53:45 2025 -0700 |
committer | GitHub <noreply@github.com> | Wed Jun 18 08:53:45 2025 -0700 |
tree | 99bf3964e848ebcc564359573af8ea3ecc23e42e | |
parent | 5d502aeddf2a5d93c3fd93103054261acf4d92f3 [diff] |
[InstCombine] Implement vp.reverse reordering/elimination through binop/unop (#143963) This simply copies the structure of the vector.reverse patterns from just above, and reimplements them for the vp.reverse intrinsics when the mask is all ones and the EVLs exactly match. Its unfortunate that we have three different ways to represent a reverse (shuffle, vector.reverse, and vp.reverse) but I don't see an obvious way to remove any them because the semantics are slightly different. This significantly improves vectorization in TSVC_2's s112 and s1112 loops when using EVL tail folding.
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.