Mercurial > hg > CbC > CbC_llvm
diff include/llvm/Analysis/DominanceFrontierImpl.h @ 83:60c9769439b8 LLVM3.7
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | 54457678186b |
children | afa8332a0e37 |
line wrap: on
line diff
--- a/include/llvm/Analysis/DominanceFrontierImpl.h Mon Sep 08 22:07:30 2014 +0900 +++ b/include/llvm/Analysis/DominanceFrontierImpl.h Wed Feb 18 14:55:36 2015 +0900 @@ -172,9 +172,7 @@ DomSetType &S = this->Frontiers[currentBB]; // Visit each block only once. - if (visited.count(currentBB) == 0) { - visited.insert(currentBB); - + if (visited.insert(currentBB).second) { // Loop over CFG successors to calculate DFlocal[currentNode] for (auto SI = BlockTraits::child_begin(currentBB), SE = BlockTraits::child_end(currentBB);