summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
committerChris Lattner <sabre@nondot.org>2004-04-27 15:13:33 +0000
commit2d3a7a6ff07526222a76f0e8fb6b015c45f5200e (patch)
tree7ec456d4a69684c55e6ba5be7e0df6800f31bc51 /llvm/lib/Analysis/ScalarEvolution.cpp
parent8bcc86b6aeb1d3c66c65aa85224933428474929b (diff)
downloadbcm5719-llvm-2d3a7a6ff07526222a76f0e8fb6b015c45f5200e.tar.gz
bcm5719-llvm-2d3a7a6ff07526222a76f0e8fb6b015c45f5200e.zip
Changes to fix up the inst_iterator to pass to boost iterator checks. This
patch was graciously contributed by Vladimir Prus. llvm-svn: 13185
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 68cad3c0e23..ae3aa411f2b 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -2175,22 +2175,22 @@ void ScalarEvolution::print(std::ostream &OS) const {
OS << "Classifying expressions for: " << F.getName() << "\n";
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
- if ((*I)->getType()->isInteger()) {
- OS << **I;
+ if (I->getType()->isInteger()) {
+ OS << *I;
OS << " --> ";
- SCEVHandle SV = getSCEV(*I);
+ SCEVHandle SV = getSCEV(&*I);
SV->print(OS);
OS << "\t\t";
- if ((*I)->getType()->isIntegral()) {
+ if ((*I).getType()->isIntegral()) {
ConstantRange Bounds = SV->getValueRange();
if (!Bounds.isFullSet())
OS << "Bounds: " << Bounds << " ";
}
- if (const Loop *L = LI.getLoopFor((*I)->getParent())) {
+ if (const Loop *L = LI.getLoopFor((*I).getParent())) {
OS << "Exits: ";
- SCEVHandle ExitValue = getSCEVAtScope(*I, L->getParentLoop());
+ SCEVHandle ExitValue = getSCEVAtScope(&*I, L->getParentLoop());
if (isa<SCEVCouldNotCompute>(ExitValue)) {
OS << "<<Unknown>>";
} else {
OpenPOWER on IntegriCloud