summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-13 16:57:55 +0000
committerDan Gohman <gohman@apple.com>2010-04-13 16:57:55 +0000
commit9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773 (patch)
tree8f2d0791b07f7ff6752b95d669dbfd07b842d541 /llvm/lib/CodeGen/MachineLICM.cpp
parentdcacef3188da3fa8f70a831d0e6747bb20fa8797 (diff)
downloadbcm5719-llvm-9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773.tar.gz
bcm5719-llvm-9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773.zip
Eliminate MachineBasicBlock::const_livein_iterator and make
MachineBasicBlock::livein_iterator a const_iterator, because clients shouldn't ever be using the iterator interface to mutate the livein set. llvm-svn: 101147
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index db67c714c36..9bef16ee97f 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/lib/CodeGen/MachineLICM.cpp
@@ -360,7 +360,7 @@ void MachineLICM::HoistRegionPostRA(MachineDomTreeNode *N) {
// Conservatively treat live-in's as an external def.
// FIXME: That means a reload that're reused in successor block(s) will not
// be LICM'ed.
- for (MachineBasicBlock::const_livein_iterator I = BB->livein_begin(),
+ for (MachineBasicBlock::livein_iterator I = BB->livein_begin(),
E = BB->livein_end(); I != E; ++I) {
unsigned Reg = *I;
++PhysRegDefs[Reg];
OpenPOWER on IntegriCloud