LLVM: llvm::sandboxir::PackReuse Class Reference (original) (raw)
This pass aims at de-duplicating packs, i.e., try to reuse already existing pack patterns instead of keeping both. More...
#include "[llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PackReuse.h](PackReuse%5F8h%5Fsource.html)"
Inheritance diagram for llvm::sandboxir::PackReuse:
| Public Member Functions | |
|---|---|
| PackReuse () | |
| bool | runOnRegion (Region &Rgn, const Analyses &A) final |
| \Returns true if it modifies R. | |
| Public Member Functions inherited from llvm::sandboxir::RegionPass | |
| RegionPass (StringRef Name) | |
| Name can't contain any spaces or start with '-'. | |
| Public Member Functions inherited from llvm::sandboxir::Pass | |
| Pass (StringRef Name) | |
| Name can't contain any spaces or start with '-'. | |
| virtual | ~Pass ()=default |
| StringRef | getName () const |
| \Returns the name of the pass. | |
| virtual void | print (raw_ostream &OS) const |
| LLVM_ABI_FOR_TEST virtual LLVM_DUMP_METHOD void | dump () const |
| virtual void | printPipeline (raw_ostream &OS) const |
| Similar to print() but adds a newline. Used for testing. |
Detailed Description
This pass aims at de-duplicating packs, i.e., try to reuse already existing pack patterns instead of keeping both.
This is useful because even though the duplicates will most probably be optimized away by future passes, their added cost can make vectorization more conservative than it should be.
Definition at line 26 of file PackReuse.h.
Constructor & Destructor Documentation
| llvm::sandboxir::PackReuse::PackReuse ( ) | inline |
|---|
Member Function Documentation
◆ runOnRegion()
The documentation for this class was generated from the following files:
- include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PackReuse.h
- lib/Transforms/Vectorize/SandboxVectorizer/Passes/PackReuse.cpp