summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-09-10 01:03:20 +0000
committerJustin Lebar <jlebar@google.com>2016-09-10 01:03:20 +0000
commitd98cf00c95438fd6eb2124f352ade7a59e8c071e (patch)
tree4eb699233d7dae205bbb51925c5828c3f246c3ed /llvm/lib/CodeGen/MachineCSE.cpp
parent4529960a3b0d05b3883e811e4ffaae3ec329ad53 (diff)
downloadbcm5719-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/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp
index 1209f73d960..ecf93d8ba26 100644
--- a/llvm/lib/CodeGen/MachineCSE.cpp
+++ b/llvm/lib/CodeGen/MachineCSE.cpp
@@ -346,7 +346,7 @@ bool MachineCSE::isCSECandidate(MachineInstr *MI) {
// Okay, this instruction does a load. As a refinement, we allow the target
// to decide whether the loaded value is actually a constant. If so, we can
// actually use it as a load.
- if (!MI->isInvariantLoad(AA))
+ if (!MI->isDereferenceableInvariantLoad(AA))
// FIXME: we should be able to hoist loads with no other side effects if
// there are no other instructions which can change memory in this loop.
// This is a trivial form of alias analysis.
OpenPOWER on IntegriCloud