llvm / llvm/llvm-project

Infer VectorInstrContext::BinaryOp in TTI::getVectorInstrContextHint

Open
#210,031 0 comments 0 reactions 0 assignees View on GitHub
new issue
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

From the discussion in https://github.com/llvm/llvm-project/pull/209387#discussion_r3594816822

We can use this to then write tests via `opt -p 'print'`, instead of through the loop vectorizer tests.

Contributor guide

Open the contributing guide

Research direction

Start with the discussion in PR 209387, especially the referenced comment, and trace TTI::getVectorInstrContextHint and VectorInstrContext::BinaryOp. Use `opt -p 'print'` to inspect the relevant output; done means the binary-operation context is inferred and covered by cost-model tests rather than loop vectorizer tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.