diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-11 16:26:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-11 16:26:13 +0000 |
commit | bb9d03b9c02529004f33faab7ffc8317686b43de (patch) | |
tree | 3604703d6a229dee9a20edaea05014d894967277 /llvm/lib/Transforms/Scalar/LICM.cpp | |
parent | c5df0bb273d097b18e4b7468b7103cd3baa66958 (diff) | |
download | bcm5719-llvm-bb9d03b9c02529004f33faab7ffc8317686b43de.tar.gz bcm5719-llvm-bb9d03b9c02529004f33faab7ffc8317686b43de.zip |
Renamed DominatorTree::Node::getNode() -> getBlock()
llvm-svn: 8469
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LICM.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 7ad000521e9..b66b830ca7c 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -245,12 +245,12 @@ void LICM::HoistRegion(DominatorTree::Node *N) { assert(N != 0 && "Null dominator tree node?"); // If this subregion is not in the top level loop at all, exit. - if (!CurLoop->contains(N->getNode())) return; + if (!CurLoop->contains(N->getBlock())) return; // Only need to hoist the contents of this block if it is not part of a // subloop (which would already have been hoisted) - if (!inSubLoop(N->getNode())) - visit(*N->getNode()); + if (!inSubLoop(N->getBlock())) + visit(*N->getBlock()); const std::vector<DominatorTree::Node*> &Children = N->getChildren(); for (unsigned i = 0, e = Children.size(); i != e; ++i) @@ -305,7 +305,7 @@ bool LICM::SafeToHoist(Instruction &Inst) { IDom = IDom->getIDom(); //See if we exited the loop. - if(!CurLoop->contains(IDom->getNode())) + if(!CurLoop->contains(IDom->getBlock())) return false; } } |