summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2016-12-24 00:04:07 +0000
committerDaniel Berlin <dberlin@dberlin.org>2016-12-24 00:04:07 +0000
commit8a6a86146c9f516416256271e35c36c2a7ddc212 (patch)
treec0b4534a2b0e2e9b4fca091d78fd4e4cc4d0804f
parent4fe6a8c826bd963ed87a1b98490ed87755e34201 (diff)
downloadbcm5719-llvm-8a6a86146c9f516416256271e35c36c2a7ddc212.tar.gz
bcm5719-llvm-8a6a86146c9f516416256271e35c36c2a7ddc212.zip
Mark isOnlyReachableViaThisEdge as const
llvm-svn: 290468
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 1865d4d05cd..7ef795fedf0 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -308,7 +308,7 @@ private:
// Reachability handling.
void updateReachableEdge(BasicBlock *, BasicBlock *);
void processOutgoingEdges(TerminatorInst *, BasicBlock *);
- bool isOnlyReachableViaThisEdge(const BasicBlockEdge &);
+ bool isOnlyReachableViaThisEdge(const BasicBlockEdge &) const;
Value *findConditionEquivalence(Value *, BasicBlock *) const;
// Elimination.
@@ -924,7 +924,7 @@ const Expression *NewGVN::performSymbolicEvaluation(Value *V,
// There is an edge from 'Src' to 'Dst'. Return true if every path from
// the entry block to 'Dst' passes via this edge. In particular 'Dst'
// must not be reachable via another edge from 'Src'.
-bool NewGVN::isOnlyReachableViaThisEdge(const BasicBlockEdge &E) {
+bool NewGVN::isOnlyReachableViaThisEdge(const BasicBlockEdge &E) const {
// While in theory it is interesting to consider the case in which Dst has
// more than one predecessor, because Dst might be part of a loop which is
OpenPOWER on IntegriCloud