[LLVMdev] Need advice on writing scheduling pass

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue May 24 20:39:41 PDT 2011


On May 24, 2011, at 6:46 PM, ether zhhb wrote:

> hi Jonas,
> 
> On Wed, May 25, 2011 at 12:59 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>> For VLIW, you probably want to number your packets instead of individual instructions. We don't have any VLIW support, so nobody has thought about how best to do it.
> 
> People had discussed VLIW support before, you may have a look at this:
> http://old.nabble.com/VLIW-Scheduling-td857833.html

Wow, that's old, but it is still a good way of solving the problem. It is the easiest way of smuggling packets through regalloc.

> I implemented the VLIW scheduling/register allocate in llvm backend
> like the way described in the above thread, and it work without any
> problem.

I assume you put your VLIW scheduler before the register allocator super-pass?

/jakob





More information about the llvm-dev mailing list