OSDN Git Service

[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)
commit47e3ade685cbc66c55bcf58923ef37ef4b5b49f7
tree8c65707ccf630325d5580bd561bf46ca7dfb6258
parent13864a0465e7937b2e1314c90b9feaf032322bbb
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262381 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXInstrInfo.td
lib/Target/NVPTX/NVPTXIntrinsics.td