[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 18 21:32:15 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.127 -> 1.128
---
Log message:
now that tblgen is smarter, use integers directly. This should help Andrew too
---
Diffs of the changes: (+1 -4)
PPCInstrInfo.td | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.127 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.128
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.127 Tue Oct 18 20:38:02 2005
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Tue Oct 18 23:32:04 2005
@@ -18,8 +18,6 @@
//===----------------------------------------------------------------------===//
// PowerPC specific transformation functions and pattern fragments.
//
-def GET_ZERO : SDNodeXForm<add, [{return getI32Imm(0);}]>; // HACK
-def GET_32 : SDNodeXForm<add, [{ return getI32Imm(32);}]>; // HACK
def LO16 : SDNodeXForm<imm, [{
// Transformation function: get the low 16 bits.
@@ -712,8 +710,7 @@
(XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
def : Pat<(zext GPRC:$in),
- (RLDICL (OR4To8 GPRC:$in, GPRC:$in), (GET_ZERO imm:$in),
- (GET_32 imm:$in))>;
+ (RLDICL (OR4To8 GPRC:$in, GPRC:$in), 0, 32)>;
def : Pat<(anyext GPRC:$in),
(OR4To8 GPRC:$in, GPRC:$in)>;
def : Pat<(trunc G8RC:$in),
More information about the llvm-commits
mailing list