diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2018-10-18 00:39:46 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2018-10-18 00:39:46 +0000 |
| commit | c6cad4251e065334e695ab51c1f326c0e11debb4 (patch) | |
| tree | 593bbe5ff8eaed2ec1f9d718a987164b37f1810e /llvm/lib/Transforms | |
| parent | c8eaea71c94d5b64d98673e686ff0ae64d4a5971 (diff) | |
| download | bcm5719-llvm-c6cad4251e065334e695ab51c1f326c0e11debb4.tar.gz bcm5719-llvm-c6cad4251e065334e695ab51c1f326c0e11debb4.zip | |
[TI removal] Switch NewGVN to directly use `Instruction`.
llvm-svn: 344718
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index ed9f868af61..f5c1493781d 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -777,7 +777,7 @@ private: // Reachability handling. void updateReachableEdge(BasicBlock *, BasicBlock *); - void processOutgoingEdges(TerminatorInst *, BasicBlock *); + void processOutgoingEdges(Instruction *, BasicBlock *); Value *findConditionEquivalence(Value *) const; // Elimination. @@ -2483,7 +2483,7 @@ Value *NewGVN::findConditionEquivalence(Value *Cond) const { } // Process the outgoing edges of a block for reachability. -void NewGVN::processOutgoingEdges(TerminatorInst *TI, BasicBlock *B) { +void NewGVN::processOutgoingEdges(Instruction *TI, BasicBlock *B) { // Evaluate reachability of terminator instruction. BranchInst *BR; if ((BR = dyn_cast<BranchInst>(TI)) && BR->isConditional()) { @@ -3133,7 +3133,7 @@ void NewGVN::valueNumberInstruction(Instruction *I) { auto *Symbolized = createUnknownExpression(I); performCongruenceFinding(I, Symbolized); } - processOutgoingEdges(dyn_cast<TerminatorInst>(I), I->getParent()); + processOutgoingEdges(I, I->getParent()); } } |

