This is an archive of the discontinued LLVM Phabricator instance.

[CGP] despeculateCountZeros - Don't create is-zero branch if cttz/ctlz source is known non-zero
ClosedPublic

Authored by RKSimon on Jul 23 2021, 10:01 AM.

Details

Summary

If value tracking can confirm that the cttz/ctlz source is known non-zero then we don't need to create a branch (which DAG will struggle to recover from).

Diff Detail

Event Timeline

RKSimon created this revision.Jul 23 2021, 10:01 AM
RKSimon requested review of this revision.Jul 23 2021, 10:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 10:01 AM

Seems good to me.

@spatel Are yo OK with this?

spatel accepted this revision.Jul 24 2021, 4:16 AM

LGTM

This revision is now accepted and ready to land.Jul 24 2021, 4:16 AM
This revision was landed with ongoing or failed builds.Jul 24 2021, 5:12 AM
This revision was automatically updated to reflect the committed changes.