llvm/llvm-project
[DAG] isGuaranteedNotToBeUndefOrPoison - add ISD::BITCAST handling with DemandedElts
クローズ
#161,512 opened on 2025/10/01
good first issuellvm:SelectionDAG
Repository metrics
- Stars
- (26,378 個のスター)
- PR merge metrics
- (平均マージ 1d 2h) (30d で 1,000 merged PRs)
説明
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