mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Cleanup. Added LoopBlocksDFS::perform for simple clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -230,13 +230,8 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
|
||||
// reverse postorder so that LastValueMap contains the correct value at each
|
||||
// exit.
|
||||
LoopBlocksDFS DFS(L);
|
||||
{
|
||||
// Traverse the loop blocks using depth-first search to record RPO numbers
|
||||
// for each block in the DFS result.
|
||||
LoopBlocksTraversal Traversal(DFS, LI);
|
||||
for (LoopBlocksTraversal::POTIterator POI = Traversal.begin(),
|
||||
POE = Traversal.end(); POI != POE; ++POI);
|
||||
}
|
||||
DFS.perform(LI);
|
||||
|
||||
// Stash the DFS iterators before adding blocks to the loop.
|
||||
LoopBlocksDFS::RPOIterator BlockBegin = DFS.beginRPO();
|
||||
LoopBlocksDFS::RPOIterator BlockEnd = DFS.endRPO();
|
||||
|
||||
Reference in New Issue
Block a user