Re: Coloring problem - Pass 0 for finding allocno costs

2010-03-22 Thread Jeff Law
On 03/18/10 08:30, Frank Isamov wrote: From the h file: #define REG_CLASS_CONTENTS \ { \ {0x, 0x, 0x}, /* NO_REGS*/ \ {0x, 0x, 0x}, /* D_REGS*/ \

Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Frank Isamov
Hi, In my backend, I have a problem with the pass which determines the best register class for a virtual register (Pass 0 for finding allocno costs). In all insns in this example both R_REGS and D_REGS register classes are applicable (but all registers in an insn should be from the same register

RE: Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Ian Bolton
The problem I see is that for registers 100,101 I get best register class D instead of R - actually they get the same cost and D is chosen (maybe because it is first). Hi Frank. Do D and R overlap? It would be useful to know which regs are in which class, before trying to understand what is

Re: Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Frank Isamov
-- Forwarded message -- From: Frank Isamov frank.isa...@gmail.com Date: Thu, Mar 18, 2010 at 4:28 PM Subject: Re: Coloring problem - Pass 0 for finding allocno costs To: Ian Bolton bol...@icerasemi.com On Thu, Mar 18, 2010 at 3:51 PM, Ian Bolton bol...@icerasemi.com wrote

RE: Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Ian Bolton
-Original Message- From: Frank Isamov [mailto:frank.isa...@gmail.com] Sent: 18 March 2010 14:29 To: Ian Bolton Subject: Re: Coloring problem - Pass 0 for finding allocno costs On Thu, Mar 18, 2010 at 3:51 PM, Ian Bolton bol...@icerasemi.com wrote: The problem I see

Re: Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Michael Matz
Hi, On Thu, 18 Mar 2010, Frank Isamov wrote: From the h file: #define REG_CLASS_CONTENTS                                              \  {             \    {0x, 0x, 0x}, /* NO_REGS*/          \    {0x, 0x, 0x}, /* D_REGS*/          \    

RE: Coloring problem - Pass 0 for finding allocno costs

2010-03-18 Thread Ian Bolton
-Original Message- From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Michael Matz Sent: 18 March 2010 15:13 To: Frank Isamov Cc: gcc@gcc.gnu.org Subject: Re: Coloring problem - Pass 0 for finding allocno costs Hi, On Thu, 18 Mar 2010, Frank Isamov wrote