[LLVMdev] help with phi elimination/ register allocation
Abhijit Ray
avizit at gmail.com
Thu Nov 17 23:35:58 PST 2005
Hi,
I would like to have the llvm code modified so as to obtain the amount
of spill code generated, for each basic block.
Basically what would be helpful would be something like a code for a
target which has the same instruction set as LLVM itself. Only extra
input I would be providing would be the number of registers.
The intention is to analyze the type of applications that stress the
register allocator more.
Just wanted to know if LLVM already has passes which I can run to get such info.
Towards this end ,after some help on the irc channel , I checked out
the PHIElimination pass , is it possible to run that pass on the
bytecode file using
opt
I have checked and found that opt --help doesn't have any option of
running just the phi elimination pass. Does this mean the phi
elimination pass is run only when generating code for a target ?
Thanks
Abhijit
More information about the llvm-dev
mailing list