1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

[TI removal] Remove TerminatorInst from GVN.h and GVN.cpp.

This is the last interesting usage in all of LLVM's headers. The
remaining usages in headers are the core typesystem bits (Core.h,
instruction types, and InstVisitor) and as the return of
`BasicBlock::getTerminator`. The latter is the big remaining API point
that I'll remove after mass updates to user code.

llvm-svn: 344501
This commit is contained in:
Chandler Carruth 2018-10-15 10:00:15 +00:00
parent f87a26b538
commit 1b568ccf5e
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ private:
}
// List of critical edges to be split between iterations.
SmallVector<std::pair<TerminatorInst *, unsigned>, 4> toSplit;
SmallVector<std::pair<Instruction *, unsigned>, 4> toSplit;
// Helper functions of redundant load elimination
bool processLoad(LoadInst *L);

View File

@ -2341,7 +2341,7 @@ bool GVN::splitCriticalEdges() {
if (toSplit.empty())
return false;
do {
std::pair<TerminatorInst*, unsigned> Edge = toSplit.pop_back_val();
std::pair<Instruction *, unsigned> Edge = toSplit.pop_back_val();
SplitCriticalEdge(Edge.first, Edge.second,
CriticalEdgeSplittingOptions(DT));
} while (!toSplit.empty());