[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Fri Jan 5 18:12:12 PST 2007



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.583 -> 1.584
---
Log message:

this final call to canLosslesslyBitCastTo is dead, because ValueRequiresCast
is only called on integers.


---
Diffs of the changes:  (+0 -4)

 InstructionCombining.cpp |    4 ----
 1 files changed, 4 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.583 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.584
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.583	Fri Jan  5 20:09:32 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Fri Jan  5 20:11:56 2007
@@ -388,10 +388,6 @@
                               const Type *Ty, TargetData *TD) {
   if (V->getType() == Ty || isa<Constant>(V)) return false;
   
-  // If this is a noop cast, it isn't real codegen.
-  if (V->getType()->canLosslesslyBitCastTo(Ty))
-    return false;
-
   // If this is another cast that can be eliminated, it isn't codegen either.
   if (const CastInst *CI = dyn_cast<CastInst>(V))
     if (isEliminableCastPair(CI, opcode, Ty, TD)) 






More information about the llvm-commits mailing list