This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Do not emit record-form rotates when record-form andi suffices
ClosedPublic

Authored by nemanjai on Mar 1 2018, 3:45 PM.

Details

Summary

Up until Power9, the performance profile for rlwinm., rldicl. and andi. looked more or less equivalent. However with Power9, the rotates are still 2-way cracked whereas the and-immediate is not.

This patch just ensures that we don't emit record-form rotates when an andi. is adequate.

As first pointed out by Carrot in https://bugs.llvm.org/show_bug.cgi?id=30833 (this patch is a fix for that PR).

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai created this revision.Mar 1 2018, 3:45 PM
hfinkel accepted this revision.Mar 2 2018, 9:04 PM

LGTM

This revision is now accepted and ready to land.Mar 2 2018, 9:04 PM
This revision was automatically updated to reflect the committed changes.