llvm / llvm/llvm-project

[InstCombine] SimplifyDemandedFPClass - add DemandedElts demanded vector elements argument

Open
#174,143 5 comments 0 reactions 1 assignee Assigned to @kevinlim17 View on GitHub
good first issue llvm:instcombine
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

computeKnownFPClass already accepts a `const APInt &DemandedElts` argument to allow us to specify demanded vector elements (or `APInt(1,1)` for scalar/scalable types) - and has a simple computeKnownFPClass wrapper for when the DemandedElts arg wasn't necessary/available.

We need to add similar handling and wrappers to SimplifyDemandedFPClass to allow us to improve vector analysis and optimisation (shufflevector, insertelement, extractelement etc.).

CC @arsenm

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.