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

Reid Spencer reid at x10sys.com
Sun Dec 3 18:48:15 PST 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.557 -> 1.558
---
Log message:

Update call to CastInst::getCastOpcode for its new signature.


---
Diffs of the changes:  (+2 -1)

 InstructionCombining.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.557 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.558
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.557	Fri Dec  1 18:13:08 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Dec  3 20:48:01 2006
@@ -388,7 +388,8 @@
 
   // 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, CastInst::getCastOpcode(V, Ty), Ty, TD)) 
+    if (isEliminableCastPair(CI, CastInst::getCastOpcode(
+            V, V->getType()->isSigned(), Ty, Ty->isSigned()), Ty, TD)) 
       return false;
   return true;
 }






More information about the llvm-commits mailing list