Re: Fixing jumps reachability after block reordering

2007-07-09 Thread Jim Wilson
Gregory B. Prokopski wrote: I reorder the basic blocks in passes.c, right after compute_alignmnets (). I added a call to shorten_branches(NULL_RTX) right after my BB reordering, but it didn't change a thing, and I am still getting as errors: shorten_branches does this: /* Compute initial leng

Re: Fixing jumps reachability after block reordering

2007-07-06 Thread Ian Lance Taylor
"Gregory B. Prokopski" <[EMAIL PROTECTED]> writes: > +++ Ian Lance Taylor [06/07/07 09:16 -0700]: > > shorten_branches should work correctly--you shouldn't need to do > > anything special. My only guess is that there is something wrong with > > the way you are reordering the blocks. For example,

Re: Fixing jumps reachability after block reordering

2007-07-06 Thread Gregory B. Prokopski
+++ Ian Lance Taylor [06/07/07 09:16 -0700]: > shorten_branches should work correctly--you shouldn't need to do > anything special. My only guess is that there is something wrong with > the way you are reordering the blocks. For example, perhaps you are > simply reordering the CFG without reorder

Re: Fixing jumps reachability after block reordering

2007-07-06 Thread Ian Lance Taylor
"Gregory B. Prokopski" <[EMAIL PROTECTED]> writes: > > But you seem to be within a single function, so I don't understand why > > you have any trouble at all. Why doesn't the shorten_branches pass > > work for you? > > I reorder the basic blocks in passes.c, right after compute_alignmnets (). >

Re: Fixing jumps reachability after block reordering

2007-07-06 Thread Gregory B. Prokopski
+++ Ian Lance Taylor [05/07/07 17:48 -0700]: > "Gregory B. Prokopski" <[EMAIL PROTECTED]> writes: > > > One of the operations I need to perform is to reorder basic blocks in a > > particular manner. This works fine for example on i386 and other that have > > HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_

Re: Fixing jumps reachability after block reordering

2007-07-05 Thread Ian Lance Taylor
"Gregory B. Prokopski" <[EMAIL PROTECTED]> writes: > One of the operations I need to perform is to reorder basic blocks in a > particular manner. This works fine for example on i386 and other that have > HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH set. However on platforms like > PPC, after the

Fixing jumps reachability after block reordering

2007-07-05 Thread Gregory B. Prokopski
Hi, I am working on adding support for code-copying to GCC that can be used to safely speed up interpreter-based VMs, as will be presented at GCC Summit: http://www.gccsummit.org/2007/view_abstract.php?content_key=30 One of the operations I need to perform is to reorder basic blocks in a particu