llvm / llvm/llvm-project

[DAG] Add MVT:changeVectorElementCount and EVT::changeVectorElementCount

Open
#174,584 10 comments 1 reaction 1 assignee Claimed by @ckoparkar View on GitHub
good first issue llvm:SelectionDAG
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Similar to EVT::changeVectorElementType - but this will allow us to adjust the `ElementCount` on the fly.

We should assert that the original type was a vector already, but we will need to support Simple<->Extended transitions similar to EVT::changeVectorElementType.

There are a number of EVT::getVectorVT() calls in DAGCombine that would benefit from converting to changeVectorElementCount for clarity, but don't attempt to do too many in an initial patch

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.