This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ::TTI] Improve accuracy of costs for vector fp <-> int conversions
ClosedPublic

Authored by jonpa on Nov 12 2018, 5:43 AM.

Details

Reviewers
uweigand
Summary

Improve getCastInstrCost() by respecting the different types of Src and Dst for vector integer <-> fp conversions.

This means that extracting from integer becomes more expensive (by the extraction penalty), and the extraction from fp becomes cheaper (no longer has a false extraction penalty).

This only affects one file on SPEC, which gets one loop containing an uitofp no longer vectorized with VF=4, since the vector conversion now costs one more.

Diff Detail

Event Timeline

jonpa created this revision.Nov 12 2018, 5:43 AM
uweigand accepted this revision.Nov 12 2018, 6:41 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 12 2018, 6:41 AM
jonpa closed this revision.Nov 12 2018, 7:39 AM

r346663