This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Improve SimplifyDemandedBits ISD::AND handling through bitcasts (PR34620)
AbandonedPublic

Authored by RKSimon on Dec 19 2017, 9:49 AM.

Details

Summary

Instead of just using isConstOrConstSplat to get constant data, use computeKnownBits which can peek through bitcasts.

Additionally, if all of the demanded bits are known on RHS, try to simplify LHS.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Dec 19 2017, 9:49 AM
RKSimon abandoned this revision.Dec 31 2017, 9:19 AM

Abandoning, D41643 looks a better solution