llvm / llvm/llvm-project

[LoopFusion] Cost model development

Open
#189,117 24 comments 1 reaction 2 assignees Claimed by @yafet-a View on GitHub
loop-fusion
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

We are working on developing a cost model for loop fusion. The goal is to start with a very simple and conservative cost model. At a high level we need to:

1. Have a code size limit to make sure aggressive fusion doesn't result in high register pressure.
2. Check for a number of reused values to ensure fusion has some benefit.

I am currently looking into one of our benchmarks to see whether we can catch the opportunity there and then develop the cost model for it.

@sjoerdmeijer @Meinersbur @CongzheUalberta @1997alireza @Alf0nso

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.