llvm/llvm-project

[DAG] isGuaranteedNotToBeUndefOrPoison - add ISD::BITCAST handling with DemandedElts

Geschlossen

#161.512 geöffnet am 01.10.2025

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
good first issuellvm:SelectionDAG

Repository-Metriken

Stars
 (26.378 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide