Legacy createLoopUnrollPass provides threshold parameter. This patch
brings the support to new-pm LoopUnrollPass.
Our downstream uses LoopUnroll pass with small threshold for fine tuning, so we want the support for new pm.
Paths
| Differential D124355
[LoopUnroll] allow customization of threshold for new-pm AbandonedPublic Authored by wenju on Apr 24 2022, 7:58 PM.
Details
Diff Detail
Event TimelineComment Actions
I don't have this plan. createLoopUnrollPass in standard pipeline uses default threshold parameter. Comment Actions Can you just have getUnrollingPreferences override the UP.Threshold for your target? Or is it that you want a specific run of the unroll pass to have a lower threshold than other runs? Comment Actions
Thanks for the suggestion.
Yes, our pipeline contains several calls of LoopUnroll pass with different thresholds, so I think getUnrollingPreferences or overriding command line option wouldn't work.
Revision Contents
Diff 424811 llvm/include/llvm/Transforms/Scalar/LoopUnrollPass.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/test/Other/new-pm-print-pipeline.ll
llvm/test/Other/print-passes.ll
|