Fix comment
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 13 Feb 2013 00:19:19 +0000 (00:19 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 13 Feb 2013 00:19:19 +0000 (00:19 +0000)
visitSExt is an adapted copy of the related visitZExt method, so adapt the comment accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175019 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCasts.cpp

index fbc259b92b75cfd1c3e8cbdfb7c0f06886594e7b..a960ab2499c64cc40a71d103982bfda498544d6b 100644 (file)
@@ -1041,8 +1041,8 @@ static bool CanEvaluateSExtd(Value *V, Type *Ty) {
 }
 
 Instruction *InstCombiner::visitSExt(SExtInst &CI) {
 }
 
 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;
 
   if (CI.hasOneUse() && isa<TruncInst>(CI.use_back()))
     return 0;