[llvm-commits] [llvm] r86681 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Duncan Sands baldrick at free.fr
Tue Nov 10 01:32:10 PST 2009


Author: baldrick
Date: Tue Nov 10 03:32:10 2009
New Revision: 86681

URL: http://llvm.org/viewvc/llvm-project?rev=86681&view=rev
Log:
Add brackets to make gcc-4.4 happy.

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=86681&r1=86680&r2=86681&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Tue Nov 10 03:32:10 2009
@@ -8262,9 +8262,9 @@
   // expression tree to something weird like i93 unless the source is also
   // strange.
   if (!isa<IntegerType>(SrcI->getType()) ||
-      ShouldChangeType(SrcI->getType(), DestTy, TD) &&
-      CanEvaluateInDifferentType(SrcI, DestTy,
-                                 CI.getOpcode(), NumCastsRemoved)) {
+      (ShouldChangeType(SrcI->getType(), DestTy, TD) &&
+       CanEvaluateInDifferentType(SrcI, DestTy,
+                                  CI.getOpcode(), NumCastsRemoved))) {
     // If this cast is a truncate, evaluting in a different type always
     // eliminates the cast, so it is always a win.  If this is a zero-extension,
     // we need to do an AND to maintain the clear top-part of the computation,





More information about the llvm-commits mailing list