summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-24 20:41:51 +0000
committerChris Lattner <sabre@nondot.org>2002-05-24 20:41:51 +0000
commitd20a98e285505adc8a2a5fcb0ef2337d9b0ec65c (patch)
tree894ac943337fae861fe4cdd1696455efe764a856
parent47e0f3a8a0b1f280457f807e4bbc6bbaa593e687 (diff)
downloadexternal_llvm-d20a98e285505adc8a2a5fcb0ef2337d9b0ec65c.zip
external_llvm-d20a98e285505adc8a2a5fcb0ef2337d9b0ec65c.tar.gz
external_llvm-d20a98e285505adc8a2a5fcb0ef2337d9b0ec65c.tar.bz2
Fix comments to reflect reality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2741 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/LevelRaise.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index b76e8ba..8703b92 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -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)) {