This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Mark splat immediate instructions as rematerializable
ClosedPublic

Authored by NeHuang on Aug 27 2021, 7:54 AM.

Details

Summary

This patch marks splat immediate instructions XXSPLTIDP and XXSPLTI32DX as rematerializable to prevent MachineLICM from moving them out of loops.

Diff Detail

Event Timeline

NeHuang created this revision.Aug 27 2021, 7:54 AM
NeHuang requested review of this revision.Aug 27 2021, 7:54 AM
amyk added a subscriber: amyk.Sep 13 2021, 4:14 PM

A question I have is, I noticed there are some test case changes involving xxspltidp and xxsplti32dx, but are additional tests needed for xxspltiw?

llvm/lib/Target/PowerPC/PPCInstrPrefix.td
1880

nit: Update this comment to include xxspltiw and xxspltidp.

lei accepted this revision as: lei.Sep 20 2021, 1:51 PM

LGTM
Thx.

This revision is now accepted and ready to land.Sep 20 2021, 1:51 PM
NeHuang marked an inline comment as done.Sep 24 2021, 12:05 PM