forked from OSchip/llvm-project
Mark isOnlyReachableViaThisEdge as const
llvm-svn: 290468
This commit is contained in:
parent
4fe6a8c826
commit
8a6a86146c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue