Re: Store scheduling with DFA scheduler

2005-04-26 Thread Vladimir Makarov
Jon Beniston wrote: Hi Vlad, There is not enough information to say what is wrong. It would be better if you send gcc output when -fsched-verbose=10 is used. Cheers, Jon ;; Ready list (t = 10):32 28 24 ;; 10--> 24 [`y']=r43 :x,m*2 ;; Ready

RE: Store scheduling with DFA scheduler

2005-04-26 Thread Jon Beniston
Hi Vlad, > There is not enough information to say what is wrong. It > would be better if you send gcc output when > -fsched-verbose=10 is used. Cheers, Jon ;; == ;; -- basic block 0 from 18 to 32 -- before reload ;; ==

Re: Store scheduling with DFA scheduler

2005-04-26 Thread Nathan Sidwell
David Edelsohn wrote: Nathan Sidwell writes: (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") (define_insn_reservation "stores" 3 (eq_attr "type" "store") "x,m*2") Nathan> Stores don't really have a 'result', why ha

Re: Store scheduling with DFA scheduler

2005-04-26 Thread David Edelsohn
> Nathan Sidwell writes: >> (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") >> (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") >> (define_insn_reservation "stores" 3 (eq_attr "type" "store") "x,m*2") Nathan> Stores don't really have a 'result', why have you

Re: Store scheduling with DFA scheduler

2005-04-26 Thread Vladimir Makarov
Jon Beniston wrote: Hi, I'm trying to get the DFA scheduler in GCC 4.0.0 to schedule loads and stores, but I can only get it to work for loads. I have an automaton defined as follows: (define_automaton "cpu") (define_cpu_unit "x" "cpu") (define_cpu_unit "m" "cpu") (define_insn_reservation "arith" 1

RE: Store scheduling with DFA scheduler

2005-04-26 Thread Richard Earnshaw
On Tue, 2005-04-26 at 12:52, Jon Beniston wrote: > > Jon, > > > (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") > > > (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") > > > (define_insn_reservation "stores" 3 (eq_attr "type" > > "store") "x,m*2") > > > > Stores

Re: Store scheduling with DFA scheduler

2005-04-26 Thread Nathan Sidwell
Jon Beniston wrote: Jon, (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") (define_insn_reservation "stores" 3 (eq_attr "type" "store") "x,m*2") Stores don't really have a 'result', why have you set the cycle count

RE: Store scheduling with DFA scheduler

2005-04-26 Thread Jon Beniston
> Jon, > > (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") > > (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") > > (define_insn_reservation "stores" 3 (eq_attr "type" > "store") "x,m*2") > > Stores don't really have a 'result', why have you set the > cycle c

Re: Store scheduling with DFA scheduler

2005-04-26 Thread Nathan Sidwell
Jon, (define_insn_reservation "arith" 1 (eq_attr "type" "arith") "x") (define_insn_reservation "loads" 2 (eq_attr "type" "load") "x,m") (define_insn_reservation "stores" 3 (eq_attr "type" "store") "x,m*2") Stores don't really have a 'result', why have you set the cycle count to 3? Shouldn't it be