diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-22 11:46:16 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-22 11:46:16 +0000 |
commit | 310ed1364185535949432bfd25a1aca3c5496f87 (patch) | |
tree | 77c38dbd1349b811f8134424d57907a29b5ce5ed /lib/Target/SystemZ/SystemZInstrFormats.td | |
parent | 3edd9bb7a3da8526eb2f4a5dae2962a987d3d566 (diff) | |
download | llvm-310ed1364185535949432bfd25a1aca3c5496f87.tar.gz llvm-310ed1364185535949432bfd25a1aca3c5496f87.tar.bz2 llvm-310ed1364185535949432bfd25a1aca3c5496f87.tar.xz |
Some dummy cost model for s390x:
- Prefer short-imm instructions over ext-imm, when possible
- Prefer Z10 instructions over Z9, when possible
This hopefully should fix some dejagnu test fails on solaris
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrFormats.td')
-rw-r--r-- | lib/Target/SystemZ/SystemZInstrFormats.td | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrFormats.td b/lib/Target/SystemZ/SystemZInstrFormats.td index 81f704f977..b4a8993c19 100644 --- a/lib/Target/SystemZ/SystemZInstrFormats.td +++ b/lib/Target/SystemZ/SystemZInstrFormats.td @@ -94,19 +94,25 @@ class RREI<bits<16> op, dag outs, dag ins, string asmstr, list<dag> pattern> : I16<op, RREForm, outs, ins, asmstr, pattern>; class RXI<bits<8> op, dag outs, dag ins, string asmstr, list<dag> pattern> - : I8<op, RXForm, outs, ins, asmstr, pattern>; + : I8<op, RXForm, outs, ins, asmstr, pattern> { + let AddedComplexity = 1; +} class RXYI<bits<16> op, dag outs, dag ins, string asmstr, list<dag> pattern> : I16<op, RXYForm, outs, ins, asmstr, pattern>; class RSI<bits<8> op, dag outs, dag ins, string asmstr, list<dag> pattern> - : I8<op, RSForm, outs, ins, asmstr, pattern>; + : I8<op, RSForm, outs, ins, asmstr, pattern> { + let AddedComplexity = 1; +} class RSYI<bits<16> op, dag outs, dag ins, string asmstr, list<dag> pattern> : I16<op, RSYForm, outs, ins, asmstr, pattern>; class SII<bits<8> op, dag outs, dag ins, string asmstr, list<dag> pattern> - : I8<op, SIForm, outs, ins, asmstr, pattern>; + : I8<op, SIForm, outs, ins, asmstr, pattern> { + let AddedComplexity = 1; +} class SIYI<bits<16> op, dag outs, dag ins, string asmstr, list<dag> pattern> : I16<op, SIYForm, outs, ins, asmstr, pattern>; |