Mark isOnlyReachableViaThisEdge as const

llvm-svn: 290468
This commit is contained in:
Daniel Berlin 2016-12-24 00:04:07 +00:00
parent 4fe6a8c826
commit 8a6a86146c
1 changed files with 2 additions and 2 deletions

View File

@ -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