llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

Open

#173,780 建立於 2025年12月28日

在 GitHub 查看
 (12 留言) (0 反應) (1 負責人)C++ (10,782 fork)batch import
good first issuellvm:instcombine

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

Noticed on #173723 - we could avoid the isIntOrIntVectorTy / dyn_cast code if the IC.SimplifyDemandedBits call was able to peek through bitcasts, at least of the same scalar bit size (e.g. f32 -> i32 / v1f64 -> i64 etc.).

貢獻者指南