[llvm] [SandboxVectorizer] Use sbvec-passes flag to create a pipeline of Region passes after BottomUpVec. (PR #111223)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 10:08:30 PDT 2024


================
@@ -17,10 +21,22 @@ class TargetTransformInfo;
 class SandboxVectorizerPass : public PassInfoMixin<SandboxVectorizerPass> {
   TargetTransformInfo *TTI = nullptr;
 
-public:
-  PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
+  // Used to build a RegionPass pipeline to be run on Regions created by the
+  // bottom-up vectorization pass.
+  sandboxir::PassRegistry PR;
+
+  // The main vectorizer pass.
+  std::unique_ptr<sandboxir::BottomUpVec> BottomUpVecPass;
----------------
aeubanks wrote:

> actually, I thought that BottomUpVecPass would own the region pass manager so it could invoke it when it creates a region

I missed `BottomUpVec` also having a reference to the region pass manager

https://github.com/llvm/llvm-project/pull/111223


More information about the llvm-commits mailing list