[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp

Evan Cheng evan.cheng at apple.com
Fri Aug 25 22:34:36 PDT 2006



Changes in directory llvm/lib/Target/Sparc:

SparcISelDAGToDAG.cpp updated: 1.105 -> 1.106
---
Log message:

Select() no longer require Result operand by reference.

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

 SparcISelDAGToDAG.cpp |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)


Index: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
diff -u llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.105 llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.106
--- llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.105	Fri Aug 25 20:07:58 2006
+++ llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp	Sat Aug 26 00:34:22 2006
@@ -966,7 +966,7 @@
       Subtarget(TM.getSubtarget<SparcSubtarget>()) {
   }
 
-  SDNode *Select(SDOperand &Result, SDOperand Op);
+  SDNode *Select(SDOperand Op);
 
   // Complex Pattern Selectors.
   bool SelectADDRrr(SDOperand N, SDOperand &R1, SDOperand &R2);
@@ -1063,13 +1063,11 @@
   return true;
 }
 
-SDNode *SparcDAGToDAGISel::Select(SDOperand &Result, SDOperand Op) {
+SDNode *SparcDAGToDAGISel::Select(SDOperand Op) {
   SDNode *N = Op.Val;
   if (N->getOpcode() >= ISD::BUILTIN_OP_END &&
-      N->getOpcode() < SPISD::FIRST_NUMBER) {
-    Result = Op;
+      N->getOpcode() < SPISD::FIRST_NUMBER)
     return NULL;   // Already selected.
-  }
 
   switch (N->getOpcode()) {
   default: break;
@@ -1113,7 +1111,7 @@
   }
   }
   
-  return SelectCode(Result, Op);
+  return SelectCode(Op);
 }
 
 






More information about the llvm-commits mailing list