[llvm] [WIP][LV] Ignore some costs when loop gets fully unrolled (PR #106699)

Igor Kirillov via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 03:38:02 PDT 2024


igogo-x86 wrote:

As far as I understand, `optimizeForVFAndUF` runs after the cost model is calculated and taken into account to choose the best vectorisation factor:

```
  VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
```

Is `optimizeForVFAndUF` eventually going to be run for all VFs before the cost model decision? If so, now VPlan implies all possible VF. So, will it generate new VPLans if `optimizeForVFAndUF` changes something?

https://github.com/llvm/llvm-project/pull/106699


More information about the llvm-commits mailing list