This is an archive of the discontinued LLVM Phabricator instance.

PR35131 Fix a misprint in CTLZ recognition
ClosedPublic

Authored by evstupac on Nov 2 2017, 6:09 PM.

Details

Summary

Before the patch LLVM include shifts on a register when recognize CTLZ loops.
The patch makes it only shift on a constant 1.

Since this is clear misprint I don't add any new lit test.

Diff Detail

Repository
rL LLVM

Event Timeline

evstupac created this revision.Nov 2 2017, 6:09 PM
This revision is now accepted and ready to land.Nov 2 2017, 10:01 PM
This revision was automatically updated to reflect the committed changes.