mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 05:27:43 +00:00
reuse result of operator*, it is expensive to recompute
llvm-svn: 107959
This commit is contained in:
parent
67f0ebc5c6
commit
d266b0fcd8
@ -757,9 +757,11 @@ public:
|
||||
typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits;
|
||||
for (typename InvBlockTraits::ChildIteratorType I =
|
||||
InvBlockTraits::child_begin(BB), E = InvBlockTraits::child_end(BB);
|
||||
I != E; ++I)
|
||||
if (DT.dominates(BB, *I)) // If BB dominates its predecessor...
|
||||
TodoStack.push_back(*I);
|
||||
I != E; ++I) {
|
||||
typename InvBlockTraits::NodeType *N = *I;
|
||||
if (DT.dominates(BB, N)) // If BB dominates its predecessor...
|
||||
TodoStack.push_back(N);
|
||||
}
|
||||
|
||||
if (TodoStack.empty()) return 0; // No backedges to this block...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user