[LLVMdev] Testing a register allocator

Fernando Magno Quintao Pereira fernando at CS.UCLA.EDU
Fri Sep 1 19:31:35 PDT 2006


> Hi!
>
> I developed a register allocator within LLVM and now I need to test its
> efficiency. Can I do this using llvm-test package?
> Do llvm tests check all available regalloc options automatically? If not,
> then what modifications should I do to the test files?
> It would be great if I could test my algo along with linearscan and compare
> the results.
>
> Thanks.
>
> Tony.

Hey, Anton.

    In TEST.llc.Makefile, you can set the type of register allocator that
you want:
LLC_OPTS = -f -o=/dev/null -stats -time-passes -regalloc=linearscan

to compare against your, open "Makefile.program", and set
LLCBETAOPTION := -regalloc=your_allocator -fast

After that, you just have to type make TEST=nightly report.html
on project/llvm-test/

An '*' on the report means that your test failed. The report will give you
your compile time, and the running time of the compiled file.

Remember to check the test files from CVS.

Best,

Fernando



More information about the llvm-dev mailing list