This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] - No SExt/ZExt needed for count trailing zeros
ClosedPublic

Authored by nemanjai on Oct 22 2016, 5:00 AM.

Details

Summary

Power9 provides the cnttzw instruction. However, in 64-bit mode, the instruction is followed by a clrldi instruction which is redundant. This patch provides the same handling for this issue as was done with cntlzw.

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai updated this revision to Diff 75529.Oct 22 2016, 5:00 AM
nemanjai retitled this revision from to [PowerPC] - No SExt/ZExt needed for count trailing zeros.
nemanjai updated this object.
nemanjai added reviewers: hfinkel, amehsan, kbarton.
nemanjai set the repository for this revision to rL LLVM.
nemanjai added a subscriber: llvm-commits.
kbarton accepted this revision.Oct 24 2016, 11:16 AM
kbarton edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 24 2016, 11:16 AM
nemanjai closed this revision.Oct 26 2016, 10:27 PM

Committed revision 285267.