llvm / llvm/llvm-project

[InstCombine] SimplifyDemandedBits - add basic bitcast handling

Open
#173,780 18 comments 0 reactions 2 assignees Claimed by @varadk27 View on GitHub
good first issue llvm:instcombine
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.