diff options
author | Justin Lebar <jlebar@google.com> | 2016-09-10 01:03:20 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2016-09-10 01:03:20 +0000 |
commit | d98cf00c95438fd6eb2124f352ade7a59e8c071e (patch) | |
tree | 4eb699233d7dae205bbb51925c5828c3f246c3ed /llvm/lib/Target/WebAssembly | |
parent | 4529960a3b0d05b3883e811e4ffaae3ec329ad53 (diff) | |
download | bcm5719-llvm-d98cf00c95438fd6eb2124f352ade7a59e8c071e.tar.gz bcm5719-llvm-d98cf00c95438fd6eb2124f352ade7a59e8c071e.zip |
[CodeGen] Rename MachineInstr::isInvariantLoad to isDereferenceableInvariantLoad. NFC
Summary:
I want to separate out the notions of invariance and dereferenceability
at the MI level, so that they correspond to the equivalent concepts at
the IR level. (Currently an MI load is MI-invariant iff it's
IR-invariant and IR-dereferenceable.)
First step is renaming this function.
Reviewers: chandlerc
Subscribers: MatzeB, jfb, llvm-commits
Differential Revision: https://reviews.llvm.org/D23370
llvm-svn: 281125
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index fba1fdab140..5d4ea5bd1a5 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -130,7 +130,7 @@ static void Query(const MachineInstr &MI, AliasAnalysis &AA, bool &Read, return; // Check for loads. - if (MI.mayLoad() && !MI.isInvariantLoad(&AA)) + if (MI.mayLoad() && !MI.isDereferenceableInvariantLoad(&AA)) Read = true; // Check for stores. |