This is an archive of the discontinued LLVM Phabricator instance.

Add target hook to allow merging stores of nonzero constants
ClosedPublic

Authored by arsenm on May 23 2015, 3:22 PM.

Details

Reviewers
hfinkel
Summary

On GPU targets, materializing constants is cheap and stores are
expensive, so only doing this for zero vectors was silly.

Most of the new testcases aren't optimally merged, and are for
later improvements.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 26372.May 23 2015, 3:22 PM
arsenm retitled this revision from to Add target hook to allow merging stores of nonzero constants.
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
hfinkel added inline comments.
include/llvm/Target/TargetLowering.h
270

This does not explain well what this does. Cheaper than what?

arsenm updated this revision to Diff 26375.May 23 2015, 4:40 PM

Update comment

hfinkel accepted this revision.May 23 2015, 5:24 PM
hfinkel added a reviewer: hfinkel.

LGTM.

This revision is now accepted and ready to land.May 23 2015, 5:24 PM
arsenm closed this revision.May 23 2015, 5:55 PM

r238108