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.).

贡献者指南