llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

Open

#173 780 ouverte le 28 déc. 2025

Voir sur GitHub
 (12 commentaires) (0 réactions) (1 assigné)C++ (10 782 forks)batch import
good first issuellvm:instcombine

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

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

Guide contributeur