This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ/TTI] Give correct cost values for vector bswap intrinsics
ClosedPublic

Authored by jonpa on Nov 21 2018, 4:54 AM.

Details

Reviewers
uweigand
Summary

Implement SystemZ::getIntrinsicInstrCost() and return costs reflecting that bswap can be done with a vperm per vector register.

This changes just one file on spec / three loops:

Diff Detail

Event Timeline

jonpa created this revision.Nov 21 2018, 4:54 AM
uweigand accepted this revision.Nov 21 2018, 6:31 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 21 2018, 6:31 AM
jonpa closed this revision.Nov 21 2018, 11:21 PM

r347445