[PATCH] Add target hook to allow merging stores of nonzero constants
Matt Arsenault
Matthew.Arsenault at amd.com
Sat May 23 15:22:45 PDT 2015
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.
http://reviews.llvm.org/D9956
Files:
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
test/CodeGen/R600/merge-stores.ll
test/CodeGen/R600/store.ll
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9956.26372.patch
Type: text/x-patch
Size: 24880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150523/03c94cc5/attachment.bin>
More information about the llvm-commits
mailing list