This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ::TTI] Improved cost values for comparison against memory.
ClosedPublic

Authored by jonpa on Nov 26 2018, 7:17 AM.

Details

Reviewers
uweigand
Summary

Single instructions exist for i8 and i16 comparisons of memory against a small immediate.

This patch makes sure that if the load in these cases has a single user (the ICmp), it gets a 0 cost (folded), and also that the ICmp gets a cost of 1.

7 loops in 4 files are vectorized differently:

10 files in total differ on SPEC.

Diff Detail

Event Timeline

jonpa created this revision.Nov 26 2018, 7:17 AM
uweigand accepted this revision.Nov 27 2018, 11:15 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 27 2018, 11:15 AM
jonpa closed this revision.Nov 28 2018, 12:15 AM

r347733