Fix comments to reflect reality
authorChris Lattner <sabre@nondot.org>
Fri, 24 May 2002 20:41:51 +0000 (20:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 24 May 2002 20:41:51 +0000 (20:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2741 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/LevelRaise.cpp

index b76e8baa4b2295787c4748679f5d636ee569db6c..8703b928b4cf711a9644d069d9427a32dd35b74d 100644 (file)
@@ -204,8 +204,8 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
     if (!isReinterpretingCast(CI)) {
       ValueTypeCache ConvertedTypes;
 
-      // Check to see if we can convert the users of the cast value to match the
-      // source type of the cast...
+      // Check to see if we can convert the source of the cast to match the
+      // destination type of the cast...
       //
       ConvertedTypes[CI] = CI->getType();  // Make sure the cast doesn't change
       if (ExpressionConvertableToType(Src, DestTy, ConvertedTypes)) {
@@ -224,8 +224,8 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
         return true;
       }
 
-      // Check to see if we can convert the source of the cast to match the
-      // destination type of the cast...
+      // Check to see if we can convert the users of the cast value to match the
+      // source type of the cast...
       //
       ConvertedTypes.clear();
       if (ValueConvertableToType(CI, Src->getType(), ConvertedTypes)) {