[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp PPCInstr64Bit.td

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 27 14:09:04 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelDAGToDAG.cpp updated: 1.195 -> 1.196
PPCInstr64Bit.td updated: 1.16 -> 1.17
---
Log message:

Don't match 64-bit bitfield inserts into rlwimi's.  todo add rldimi. :)


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

 PPCISelDAGToDAG.cpp |    9 +++++----
 PPCInstr64Bit.td    |    2 --
 2 files changed, 5 insertions(+), 6 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.195 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.196
--- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.195	Tue Jun 27 15:46:17 2006
+++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp	Tue Jun 27 16:08:52 2006
@@ -1076,10 +1076,11 @@
     break;
   }
   case ISD::OR:
-    if (SDNode *I = SelectBitfieldInsert(N)) {
-      Result = CodeGenMap[Op] = SDOperand(I, 0);
-      return;
-    }
+    if (N->getValueType(0) == MVT::i32)
+      if (SDNode *I = SelectBitfieldInsert(N)) {
+        Result = CodeGenMap[Op] = SDOperand(I, 0);
+        return;
+      }
       
     // Other cases are autogenerated.
     break;


Index: llvm/lib/Target/PowerPC/PPCInstr64Bit.td
diff -u llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.16 llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.17
--- llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.16	Tue Jun 27 15:07:26 2006
+++ llvm/lib/Target/PowerPC/PPCInstr64Bit.td	Tue Jun 27 16:08:52 2006
@@ -134,8 +134,6 @@
                       "xoris $dst, $src1, $src2", IntGeneral,
                    [(set G8RC:$dst, (xor G8RC:$src1, imm16ShiftedZExt:$src2))]>;
 
-
-                   
 def ADD8  : XOForm_1<31, 266, 0, (ops G8RC:$rT, G8RC:$rA, G8RC:$rB),
                      "add $rT, $rA, $rB", IntGeneral,
                      [(set G8RC:$rT, (add G8RC:$rA, G8RC:$rB))]>;






More information about the llvm-commits mailing list