Re: Iterating over RTL in Graphite

2012-03-05 Thread Arnaldo
On Sat, Feb 18, 2012 at 6:46 PM, Arnaldo arnaldo.c...@upr.edu wrote: On Fri, Feb 17, 2012 at 10:15 PM, Tobias Grosser tob...@grosser.es wrote: On 02/17/2012 08:34 PM, David Malcolm wrote: On Thu, 2012-02-16 at 19:17 -0400, Arnaldo wrote: Hello everyone, I'm working on an extension to the

Re: Iterating over RTL in Graphite

2012-03-05 Thread Richard Guenther
On Mon, Mar 5, 2012 at 2:51 PM, Arnaldo arnaldo.c...@upr.edu wrote: On Sat, Feb 18, 2012 at 6:46 PM, Arnaldo arnaldo.c...@upr.edu wrote: On Fri, Feb 17, 2012 at 10:15 PM, Tobias Grosser tob...@grosser.es wrote: On 02/17/2012 08:34 PM, David Malcolm wrote: On Thu, 2012-02-16 at 19:17 -0400,

Re: Iterating over RTL in Graphite

2012-03-05 Thread Michael Matz
Hi, On Mon, 5 Mar 2012, Arnaldo wrote: I couldn't get cfgexpand.c:basic_block expand_gimple_basic_block (basic_block bb) to work by calling it directly because there is some preprocessing in gimple_expand_cfg() that has to be done first. But calling gimple_expand_cfg() modifies the CFG

Re: Iterating over RTL in Graphite

2012-03-05 Thread Arnaldo
On Mon, Mar 5, 2012 at 10:00 AM, Michael Matz m...@suse.de wrote: Hi, On Mon, 5 Mar 2012, Arnaldo wrote: I couldn't get cfgexpand.c:basic_block expand_gimple_basic_block (basic_block bb) to work by calling it directly because there is some preprocessing in gimple_expand_cfg() that has to be

Re: Iterating over RTL in Graphite

2012-03-05 Thread Richard Guenther
On Mon, Mar 5, 2012 at 3:52 PM, Arnaldo arnaldo.c...@upr.edu wrote: On Mon, Mar 5, 2012 at 10:00 AM, Michael Matz m...@suse.de wrote: Hi, On Mon, 5 Mar 2012, Arnaldo wrote: I couldn't get cfgexpand.c:basic_block expand_gimple_basic_block (basic_block bb) to work by calling it directly

Re: Iterating over RTL in Graphite

2012-03-05 Thread David Edelsohn
On Mon, Mar 5, 2012 at 9:52 AM, Arnaldo arnaldo.c...@upr.edu wrote: On Mon, Mar 5, 2012 at 10:00 AM, Michael Matz m...@suse.de wrote: Hi, On Mon, 5 Mar 2012, Arnaldo wrote: I couldn't get cfgexpand.c:basic_block expand_gimple_basic_block (basic_block bb) to work by calling it directly

Re: Iterating over RTL in Graphite

2012-03-05 Thread Arnaldo
On Mon, Mar 5, 2012 at 11:17 AM, David Edelsohn dje@gmail.com wrote: On Mon, Mar 5, 2012 at 9:52 AM, Arnaldo arnaldo.c...@upr.edu wrote: On Mon, Mar 5, 2012 at 10:00 AM, Michael Matz m...@suse.de wrote: Hi, On Mon, 5 Mar 2012, Arnaldo wrote: I couldn't get cfgexpand.c:basic_block

Re: Iterating over RTL in Graphite

2012-03-05 Thread Richard Guenther
On Mon, Mar 5, 2012 at 4:31 PM, Arnaldo arnaldo.c...@upr.edu wrote: On Mon, Mar 5, 2012 at 11:17 AM, David Edelsohn dje@gmail.com wrote: On Mon, Mar 5, 2012 at 9:52 AM, Arnaldo arnaldo.c...@upr.edu wrote: On Mon, Mar 5, 2012 at 10:00 AM, Michael Matz m...@suse.de wrote: Hi, On Mon, 5 Mar

Re: Iterating over RTL in Graphite

2012-02-18 Thread Arnaldo
On Fri, Feb 17, 2012 at 10:15 PM, Tobias Grosser tob...@grosser.es wrote: On 02/17/2012 08:34 PM, David Malcolm wrote: On Thu, 2012-02-16 at 19:17 -0400, Arnaldo wrote: Hello everyone, I'm working on an extension to the Graphite pass of GCC 4.4.0.  My intention is to associate costs to RTL

Re: Iterating over RTL in Graphite

2012-02-17 Thread David Malcolm
On Thu, 2012-02-16 at 19:17 -0400, Arnaldo wrote: Hello everyone, I'm working on an extension to the Graphite pass of GCC 4.4.0. My intention is to associate costs to RTL instructions by adding them as RTX attributes to a machine description file, and to read them back during the Graphite

Re: Iterating over RTL in Graphite

2012-02-17 Thread Tobias Grosser
On 02/17/2012 08:34 PM, David Malcolm wrote: On Thu, 2012-02-16 at 19:17 -0400, Arnaldo wrote: Hello everyone, I'm working on an extension to the Graphite pass of GCC 4.4.0. My intention is to associate costs to RTL instructions by adding them as RTX attributes to a machine description file,

Iterating over RTL in Graphite

2012-02-16 Thread Arnaldo
Hello everyone, I'm working on an extension to the Graphite pass of GCC 4.4.0. My intention is to associate costs to RTL instructions by adding them as RTX attributes to a machine description file, and to read them back during the Graphite pass by iterating through each basic block. Is the RTL