vporpo 5ecce45ea2
[SandboxVec] Move seed collection into its own separate pass (#127132)
This patch moves the seed collection logic from the BottomUpVec pass
into a new Sandbox IR Function pass. The new "seed-collection" pass
collects the seeds, builds a region and runs the region pass pipeline.
2025-02-18 11:11:07 -08:00

29 lines
908 B
LLVM

; RUN: opt -passes=sandbox-vectorizer -sbvec-print-pass-pipeline \
; RUN: -disable-output -sbvec-passes="seed-collection<null,null>" %s \
; RUN: | FileCheck %s
;
; RUN: opt -passes=sandbox-vectorizer -sbvec-print-pass-pipeline \
; RUN: -disable-output -sbvec-passes="seed-collection<>,regions-from-metadata<>" %s \
; RUN: | FileCheck --check-prefix CHECK-MULTIPLE-FUNCTION-PASSES %s
; !!!WARNING!!! This won't get updated by update_test_checks.py !
; This checks the user defined pass pipeline.
define void @pipeline() {
ret void
}
; CHECK: fpm
; CHECK: seed-collection
; CHECK: rpm
; CHECK: null
; CHECK: null
; CHECK-EMPTY:
; CHECK-MULTIPLE-FUNCTION-PASSES: fpm
; CHECK-MULTIPLE-FUNCTION-PASSES: seed-collection
; CHECK-MULTIPLE-FUNCTION-PASSES: rpm
; CHECK-MULTIPLE-FUNCTION-PASSES: regions-from-metadata
; CHECK-MULTIPLE-FUNCTION-PASSES: rpm
; CHECK-MULTIPLE-FUNCTION-PASSES-EMPTY: