[llvm] r175019 - Fix comment

Arnaud A. de Grandmaison arnaud.adegm at gmail.com
Tue Feb 12 16:19:20 PST 2013


Author: aadg
Date: Tue Feb 12 18:19:19 2013
New Revision: 175019

URL: http://llvm.org/viewvc/llvm-project?rev=175019&view=rev
Log:
Fix comment

visitSExt is an adapted copy of the related visitZExt method, so adapt the comment accordingly.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp?rev=175019&r1=175018&r2=175019&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCasts.cpp Tue Feb 12 18:19:19 2013
@@ -1041,8 +1041,8 @@ static bool CanEvaluateSExtd(Value *V, T
 }
 
 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;
 





More information about the llvm-commits mailing list