llvm/llvm-project
[DAG] isGuaranteedNotToBeUndefOrPoison - add ISD::BITCAST handling with DemandedElts
已關閉
#161,512 建立於 2025年10月1日
good first issuellvm:SelectionDAG
倉庫指標
- 星標
- (26,378 顆星)
- PR 合併指標
- (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)
描述
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