summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
diff options
context:
space:
mode:
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2013-02-13 00:19:19 +0000
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>2013-02-13 00:19:19 +0000
commit2e4df4f7c26a4817899ce0ebf5d3b1bb43417199 (patch)
tree5106383baac72ade94f98169f3f0f90919ee75f7 /llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
parentc14895645d28cfe49d933eb400a3ac5bad6adbba (diff)
downloadbcm5719-llvm-2e4df4f7c26a4817899ce0ebf5d3b1bb43417199.tar.gz
bcm5719-llvm-2e4df4f7c26a4817899ce0ebf5d3b1bb43417199.zip
Fix comment
visitSExt is an adapted copy of the related visitZExt method, so adapt the comment accordingly. llvm-svn: 175019
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
index fbc259b92b7..a960ab2499c 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
@@ -1041,8 +1041,8 @@ static bool CanEvaluateSExtd(Value *V, Type *Ty) {
}
Instruction *InstCombiner::visitSExt(SExtInst &CI) {
- // If this sign extend is only used by a truncate, let the truncate by
- // eliminated before we try to optimize this zext.
+ // If this sign extend is only used by a truncate, let the truncate be
+ // eliminated before we try to optimize this sext.
if (CI.hasOneUse() && isa<TruncInst>(CI.use_back()))
return 0;
OpenPOWER on IntegriCloud