forked from OSchip/llvm-project
Add InjectTLIMappings pass to new pass manager
This pass is created ind6de5f12d4
and tested for new and legacy pass manager but never added to new pass manager pipeline. I am adding it to new pass manager pipeline. This pass is get used in Vector Function Database (VFDatabase) and without this pass in new pass manager pipeline, none of the vector libraries are work ing with new pass manager. Related passes:66c120f025
https://reviews.llvm.org/D74944 Differential revision: https://reviews.llvm.org/D75354
This commit is contained in:
parent
ae9edbcea2
commit
9ed0612cca
|
@ -972,6 +972,10 @@ ModulePassManager PassBuilder::buildModuleOptimizationPipeline(
|
|||
// llvm.loop.distribute=true or when -enable-loop-distribute is specified.
|
||||
OptimizePM.addPass(LoopDistributePass());
|
||||
|
||||
// Populates the VFABI attribute with the scalar-to-vector mappings
|
||||
// from the TargetLibraryInfo.
|
||||
OptimizePM.addPass(InjectTLIMappings());
|
||||
|
||||
// Now run the core loop vectorizer.
|
||||
OptimizePM.addPass(LoopVectorizePass(
|
||||
LoopVectorizeOptions(!PTO.LoopInterleaving, !PTO.LoopVectorization)));
|
||||
|
|
|
@ -245,6 +245,7 @@
|
|||
; CHECK-O-NEXT: Running pass: LCSSAPass
|
||||
; CHECK-O-NEXT: Finished llvm::Function pass manager run.
|
||||
; CHECK-O-NEXT: Running pass: LoopDistributePass
|
||||
; CHECK-O-NEXT: Running pass: InjectTLIMappings
|
||||
; CHECK-O-NEXT: Running pass: LoopVectorizePass
|
||||
; CHECK-O-NEXT: Running analysis: BlockFrequencyAnalysis
|
||||
; CHECK-O-NEXT: Running analysis: BranchProbabilityAnalysis
|
||||
|
|
|
@ -215,6 +215,7 @@
|
|||
; CHECK-POSTLINK-O-NEXT: Running pass: LCSSAPass
|
||||
; CHECK-POSTLINK-O-NEXT: Finished llvm::Function pass manager run
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: LoopDistributePass
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: InjectTLIMappings
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: LoopVectorizePass
|
||||
; CHECK-POSTLINK-O-NEXT: Running analysis: BlockFrequencyAnalysis
|
||||
; CHECK-POSTLINK-O-NEXT: Running analysis: BranchProbabilityAnalysis
|
||||
|
|
|
@ -185,6 +185,7 @@
|
|||
; CHECK-O-NEXT: Running pass: LCSSAPass
|
||||
; CHECK-O-NEXT: Finished {{.*}}Function pass manager run
|
||||
; CHECK-O-NEXT: Running pass: LoopDistributePass
|
||||
; CHECK-O-NEXT: Running pass: InjectTLIMappings
|
||||
; CHECK-O-NEXT: Running pass: LoopVectorizePass
|
||||
; CHECK-O-NEXT: Running pass: VectorCombinePass
|
||||
; CHECK-O-NEXT: Running pass: EarlyCSEPass
|
||||
|
|
|
@ -196,6 +196,7 @@
|
|||
; CHECK-O-NEXT: Running pass: LCSSAPass
|
||||
; CHECK-O-NEXT: Finished {{.*}}Function pass manager run
|
||||
; CHECK-O-NEXT: Running pass: LoopDistributePass
|
||||
; CHECK-O-NEXT: Running pass: InjectTLIMappings
|
||||
; CHECK-O-NEXT: Running pass: LoopVectorizePass
|
||||
; CHECK-O-NEXT: Running pass: VectorCombinePass
|
||||
; CHECK-O-NEXT: Running pass: EarlyCSEPass
|
||||
|
|
Loading…
Reference in New Issue