llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

Open

#173.780 aberto em 28 de dez. de 2025

Ver no GitHub
 (12 comments) (0 reactions) (1 assignee)C++ (10.782 forks)batch import
good first issuellvm:instcombine

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

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

Guia do colaborador