llvm / llvm/llvm-project

[EpilogTailFolding] Create CostModel instance for tail-folded epilogue

Open
#195,294 0 comments 0 reactions 1 assignee Claimed by @hassnaaHamdi View on GitHub
vectorizers
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

We need to create a CM instance dedicated for tail-folded epilogue to make separation between the costs calculated for the unpredicated vector main loop and the predicated (tail-folded) vector epilogue.

What we need to do here:

- Create an instance of CM for tail-folded epilogue.
- Populate CM functions to consider the new option for epilogue lowering.
- Keep that CM instance (inactive). It should NOT affect the final output. We are still NOT generating vectorized predicated epilogue.
- Add tests

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.