This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ::TTI] Let i8/i16 uint/sint to fp conversions cost 1 if operand is a load.
ClosedPublic

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

Details

Reviewers
uweigand
Summary

Since the load already does the extension, there is no extra cost (previously returned 2).

This affects ~5 loop vectorizer decisions, seemingly for the better. See

Diff Detail

Event Timeline

jonpa created this revision.Nov 2 2018, 12:43 AM
uweigand accepted this revision.Nov 2 2018, 6:18 AM

LGTM, thanks.

This revision is now accepted and ready to land.Nov 2 2018, 6:18 AM
jonpa closed this revision.Nov 2 2018, 11:02 AM

r346009