[llvm-commits] [llvm] r52624 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Dan Gohman gohman at apple.com
Mon Jun 23 08:29:14 PDT 2008


Author: djg
Date: Mon Jun 23 10:29:14 2008
New Revision: 52624

URL: http://llvm.org/viewvc/llvm-project?rev=52624&view=rev
Log:
Duncan pointed out this code could be tidied.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=52624&r1=52623&r2=52624&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Jun 23 10:29:14 2008
@@ -1057,9 +1057,8 @@
                      DAG.getNode(ISD::CARRY_FALSE, MVT::Flag));
   
   // canonicalize constant to RHS.
-  if (N0C && !N1C) {
+  if (N0C && !N1C)
     return DAG.getNode(ISD::ADDC, N->getVTList(), N1, N0);
-  }
   
   // fold (addc x, 0) -> x + no carry out
   if (N1C && N1C->isNullValue())
@@ -1093,14 +1092,12 @@
   //MVT VT = N0.getValueType();
   
   // canonicalize constant to RHS
-  if (N0C && !N1C) {
+  if (N0C && !N1C)
     return DAG.getNode(ISD::ADDE, N->getVTList(), N1, N0, CarryIn);
-  }
   
   // fold (adde x, y, false) -> (addc x, y)
-  if (CarryIn.getOpcode() == ISD::CARRY_FALSE) {
+  if (CarryIn.getOpcode() == ISD::CARRY_FALSE)
     return DAG.getNode(ISD::ADDC, N->getVTList(), N1, N0);
-  }
   
   return SDOperand();
 }





More information about the llvm-commits mailing list