llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

Open

#173.780 geöffnet am 28. Dez. 2025

Auf GitHub ansehen
 (12 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (10.782 Forks)batch import
good first issuellvm:instcombine

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide