This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Add SelectionDAG::ComputeMinSignedBits helper
ClosedPublic

Authored by RKSimon on Nov 8 2021, 5:45 AM.

Details

Summary

As suggested on D113371, this adds a wrapper to SelectionDAG::ComputeNumSignBits, similar to the llvm::ComputeMinSignedBits wrapper.

I've included some usage, its not exhaustive, just the more obvious cases where the intention is obvious.

Diff Detail

Event Timeline

RKSimon created this revision.Nov 8 2021, 5:45 AM
RKSimon requested review of this revision.Nov 8 2021, 5:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 5:45 AM
foad accepted this revision.Nov 8 2021, 5:51 AM

Looks good to me.

This revision is now accepted and ready to land.Nov 8 2021, 5:51 AM
lebedev.ri accepted this revision.Nov 8 2021, 5:54 AM

Thanks.
Note that i did't carefully review each use.

This revision was landed with ongoing or failed builds.Nov 8 2021, 6:13 AM
This revision was automatically updated to reflect the committed changes.