[NVPTX] Annotate param loads/stores as mayLoad/mayStore.
authorJustin Lebar <jlebar@google.com>
Tue, 1 Mar 2016 19:44:22 +0000 (19:44 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 1 Mar 2016 19:44:22 +0000 (19:44 +0000)
commit2daaa1ceca4f4bce9893e1bd36860148dc04788c
treefe8f57c8622ce8edf7f376e21222109a0f764a87
parent536c8b7446e6350a65c70f1400b971d1dcbac81c
[NVPTX] Annotate param loads/stores as mayLoad/mayStore.

Summary:
Tablegen was unable to determine that param loads/stores were actually
reading or writing from memory.  I think this isn't a problem in
practice for param stores, because those occur in a block right before
we make our call.  But param loads don't have to at the very beginning
of a function, so should be annotated as mayLoad so we don't incorrectly
optimize them.

Reviewers: jholewinski

Subscribers: jholewinski, llvm-commits

Differential Revision: http://reviews.llvm.org/D17471

llvm-svn: 262381
llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
llvm/lib/Target/NVPTX/NVPTXIntrinsics.td