llvm-project
4e05d702 - [LV] Always include middle block cost in isOutsideLoopWorkProfitable. (#171102)

Commit
137 days ago
[LV] Always include middle block cost in isOutsideLoopWorkProfitable. (#171102) Always include the cost of the middle block in isOutsideLoopWorkProfitable. This addresses the TODO from https://github.com/llvm/llvm-project/pull/168949 and removes the temporary restriction. isOutsideLoopWorkProfitable already scales the cost outside loops according the expected trip counts. In practice this increases the minimum iteration threshold in a few cases. On a large IR corpus based on C/C++ workloads, ~50 out of 179450 vector loops have their thresholds increased slightly. PR: https://github.com/llvm/llvm-project/pull/171102
Author
Parents
Loading