[llvm] r177845 - Clean up Sparc patterns.
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sun Mar 24 12:37:05 PDT 2013
Author: stoklund
Date: Sun Mar 24 14:37:04 2013
New Revision: 177845
URL: http://llvm.org/viewvc/llvm-project?rev=177845&view=rev
Log:
Clean up Sparc patterns.
The types of register variables no longer need to be specified in output
patterns.
Modified:
llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
Modified: llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td?rev=177845&r1=177844&r2=177845&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Sparc/SparcInstrInfo.td Sun Mar 24 14:37:04 2013
@@ -762,7 +762,7 @@ def POPCrr : F3_1<2, 0b101110,
(outs IntRegs:$dst), (ins IntRegs:$src),
"popc $src, $dst", []>, Requires<[HasV9]>;
def : Pat<(ctpop i32:$src),
- (POPCrr (SLLri i32:$src, 0))>;
+ (POPCrr (SLLri $src, 0))>;
//===----------------------------------------------------------------------===//
// Non-Instruction Patterns
@@ -777,9 +777,9 @@ def : Pat<(i32 imm:$val),
// subc
def : Pat<(subc i32:$b, i32:$c),
- (SUBCCrr i32:$b, i32:$c)>;
+ (SUBCCrr $b, $c)>;
def : Pat<(subc i32:$b, simm13:$val),
- (SUBCCri i32:$b, imm:$val)>;
+ (SUBCCri $b, imm:$val)>;
// Global addresses, constant pool entries
def : Pat<(SPhi tglobaladdr:$in), (SETHIi tglobaladdr:$in)>;
@@ -789,9 +789,9 @@ def : Pat<(SPlo tconstpool:$in), (ORri G
// Add reg, lo. This is used when taking the addr of a global/constpool entry.
def : Pat<(add i32:$r, (SPlo tglobaladdr:$in)),
- (ADDri i32:$r, tglobaladdr:$in)>;
+ (ADDri $r, tglobaladdr:$in)>;
def : Pat<(add i32:$r, (SPlo tconstpool:$in)),
- (ADDri i32:$r, tconstpool:$in)>;
+ (ADDri $r, tconstpool:$in)>;
// Calls:
def : Pat<(call tglobaladdr:$dst),
More information about the llvm-commits
mailing list