[LLVMdev] Testing a register allocator

Tanya M. Lattner tonic at nondot.org
Fri Sep 1 10:52:57 PDT 2006

> 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?

You can use llvm-test to do this. It wont check all avaliable regalloc 
options though... you need to tell it to use something other than the 
default. If you wanted to use the nightly tester scripts, you can set the 
llc-beta option to use your register allocator. Otherwise, check out 
TEST.llc* to see how you can modify it to use your register allocator and 
generate reports.


More information about the llvm-dev mailing list