From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9605061921.AA29277@ives.amt.tay1.dec.com> Date: Mon, 6 May 1996 15:21:47 -0500 (EDT) From: Jim Paradis Subject: Playing with ev4sched... Well, I did some experimenting with ev4sched last week. I added code to the front end to break the input file into basic blocks and feed them to the scheduler one at a time. I also added some code to write the rescheduled code back out to the executable file. The latter turned out to be useless, because rescheduled code crashes and burns for reasons I'll get into in a moment... In a nutshell, the results suggest that the gcc *scheduling* pass is working about as well as it can. This does *not* mean that gcc is generating optimal code; just that the code that gcc *does* generate is about as well-scheduled for the ev4 as it could be. In other words, optimization has to be done at a higher level. More details: After feeding it everything in /bin, my modified ev4sched reported was able to reschedule between 15-25% of the basic blocks in the program, and the average performance increase was 2-3 cycles per basic block. In other words, not a huge performance boost. It turns out that these numbers may be reduced further by the fact that certain code paths depend on the instruction issue order and cannot be rescheduled without knowing more about the live/dead state of registers at each end of the basic block (gp modification is a prime example of this...). So we'll have to look for improvements elsewhere... -- Jim Paradis (paradis@amt.tay1.dec.com) "It's not procrastination, Digital Equipment Corporation it's my new Just-In-Time (508)952-4047 Workload Management System!" http://www.tiac.net/users/jrp/index.html