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.
Differential D124355
[LoopUnroll] allow customization of threshold for new-pm wenju on Apr 24 2022, 7:58 PM. Authored by
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. |