summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-29 20:27:52 +0000
committerDan Gohman <gohman@apple.com>2009-04-29 20:27:52 +0000
commitd9b11b2ef45045e78be604a20ede80fcb4d77414 (patch)
tree1d40c515e992a42348d7d8a93f8b082e486169c8 /llvm/lib/Analysis/ScalarEvolution.cpp
parente27b929809a8c8eb6417234b237ca2f2f4002685 (diff)
downloadbcm5719-llvm-d9b11b2ef45045e78be604a20ede80fcb4d77414.tar.gz
bcm5719-llvm-d9b11b2ef45045e78be604a20ede80fcb4d77414.zip
Include the source type in SCEV cast expression debug output, and
print sext, zext, and trunc, instead of signextend, zeroextend, and truncate, respectively, for consistency with the main IR. llvm-svn: 70405
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 42d2fdd3629..b81df12b4c6 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -219,7 +219,7 @@ SCEVTruncateExpr::~SCEVTruncateExpr() {
}
void SCEVTruncateExpr::print(raw_ostream &OS) const {
- OS << "(truncate " << *Op << " to " << *Ty << ")";
+ OS << "(trunc " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVZeroExtends - Only allow the creation of one SCEVZeroExtendExpr for any
@@ -240,7 +240,7 @@ SCEVZeroExtendExpr::~SCEVZeroExtendExpr() {
}
void SCEVZeroExtendExpr::print(raw_ostream &OS) const {
- OS << "(zeroextend " << *Op << " to " << *Ty << ")";
+ OS << "(zext " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVSignExtends - Only allow the creation of one SCEVSignExtendExpr for any
@@ -261,7 +261,7 @@ SCEVSignExtendExpr::~SCEVSignExtendExpr() {
}
void SCEVSignExtendExpr::print(raw_ostream &OS) const {
- OS << "(signextend " << *Op << " to " << *Ty << ")";
+ OS << "(sext " << *Op->getType() << " " << *Op << " to " << *Ty << ")";
}
// SCEVCommExprs - Only allow the creation of one SCEVCommutativeExpr for any
OpenPOWER on IntegriCloud