summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commite80124df80e9cef6e8e24e9e01a7e7fb0c806b5c (patch)
treee6d9f83d0842f957f149c26783c6b8db567b7665 /llvm/lib
parente3da2980adaf589a58e0b49d68bcbcba470fae08 (diff)
downloadbcm5719-llvm-e80124df80e9cef6e8e24e9e01a7e7fb0c806b5c.tar.gz
bcm5719-llvm-e80124df80e9cef6e8e24e9e01a7e7fb0c806b5c.zip
Fix comments to reflect reality
llvm-svn: 2741
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/LevelRaise.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/LevelRaise.cpp b/llvm/lib/Transforms/LevelRaise.cpp
index b76e8baa4b2..8703b928b4c 100644
--- a/llvm/lib/Transforms/LevelRaise.cpp
+++ b/llvm/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)) {
OpenPOWER on IntegriCloud