[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Reid Spencer reid at x10sys.com
Thu Nov 2 19:30:49 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.233 -> 1.234
---
Log message:

Remove dead variable. Fix 80 column violations.


---
Diffs of the changes:  (+3 -3)

 DAGCombiner.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.233 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.234
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.233	Thu Nov  2 21:06:21 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp	Thu Nov  2 21:30:34 2006
@@ -176,7 +176,6 @@
 
     bool CombineToIndexedLoadStore(SDNode *N) {
       SDOperand Ptr;
-      bool isLoad = true;
       if (LoadSDNode *LD  = dyn_cast<LoadSDNode>(N)) {
         Ptr = LD->getBasePtr();
       } else
@@ -200,7 +199,8 @@
           //    themselves use of loads / stores.
 
           bool OffIsAMImm = Offset.getOpcode() == ISD::Constant &&
-            TLI.isLegalAddressImmediate(cast<ConstantSDNode>(Offset)->getValue());
+            TLI.isLegalAddressImmediate(
+              cast<ConstantSDNode>(Offset)->getValue());
 
           // Check for #3.
           if (OffIsAMImm && BasePtr.Val->use_size() > 1) {
@@ -209,7 +209,7 @@
               SDNode *Use = *I;
               if (Use == Ptr.Val)
                 continue;
-              if (Use->getOpcode() == ISD::ADD || Use->getOpcode() == ISD::SUB) {
+              if (Use->getOpcode() == ISD::ADD || Use->getOpcode() == ISD::SUB){
                 for (SDNode::use_iterator II = Use->use_begin(),
                        EE = Use->use_end(); II != EE; ++II) {
                   SDNode *UseUse = *II;






More information about the llvm-commits mailing list