llvm / llvm/llvm-project

LLVM should have more end-to-end tests for IR opt+codegen

Open
#206,167 0 comments 1 reaction 0 assignees View on GitHub
llvm:instcombine llvm:optimizations llvm:SLPVectorizer test-suite
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Many InstCombine and SLP optimizations may seem superior in IR level, but in fact will lead to suboptimal codegen. LLVM should add end-to-end tests to prevent such cases from being missed.

https://github.com/llvm/llvm-project/issues/202245
https://github.com/llvm/llvm-project/issues/200538
https://github.com/llvm/llvm-project/issues/203756#issuecomment-4759845565

Contributor guide

Open the contributing guide

Research direction

Start by reading the three linked issues and reviewing the InstCombine and SLP optimization areas named here. Identify cases where an IR-level optimization produces suboptimal codegen, then add end-to-end coverage for those cases and verify the tests prevent the regressions from being missed.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.