llvm/llvm-project
[DAG] isGuaranteedNotToBeUndefOrPoison - add ISD::BITCAST handling with DemandedElts
Fermée
#161 512 ouverte le 1 oct. 2025
good first issuellvm:SelectionDAG
Métriques du dépôt
- Stars
- (26 378 étoiles)
- Métriques de merge PR
- (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)
Description
Currently ISD::BITCAST nodes fallback to the default implementation (which tests all elements), but we should be rescaling the input demanded elts to match the vector element count of the input operand, typically with APIntOps::ScaleBitMask but there will need to be special case handling of src/dst scalar types as well.
Test coverage will be the main issue