diff options
| -rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 4 |
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 |

