llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

开放

#173,780 创建于 2025年12月28日

 (12 条评论) (0 个反应) (1 位负责人)C++ (10,782 个派生)batch import
good first issuellvm:instcombine

仓库指标

星标
 (26,378 个星标)
PR 合并指标
 (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.).

贡献者指南