aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/ScalarEvolution.cpp4
-rw-r--r--test/Analysis/ScalarEvolution/max-trip-count.ll2
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index ba1cbb1..d458399 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -434,11 +434,7 @@ const Type *SCEVUnknown::getType() const {
}
void SCEVUnknown::print(raw_ostream &OS) const {
- if (isa<PointerType>(V->getType()))
- OS << "(ptrtoint " << *V->getType() << " ";
WriteAsOperand(OS, V, false);
- if (isa<PointerType>(V->getType()))
- OS << " to iPTR)";
}
//===----------------------------------------------------------------------===//
diff --git a/test/Analysis/ScalarEvolution/max-trip-count.ll b/test/Analysis/ScalarEvolution/max-trip-count.ll
index ab88f13..0567414 100644
--- a/test/Analysis/ScalarEvolution/max-trip-count.ll
+++ b/test/Analysis/ScalarEvolution/max-trip-count.ll
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | opt -analyze -scalar-evolution -disable-output \
-; RUN: | grep {\{(ptrtoint i32\\* %d to iPTR),+,4\}<bb>}
+; RUN: | grep {\{%d,+,4\}<bb>}
define void @foo(i32* nocapture %d, i32 %n) nounwind {
entry: