[LLVMdev] Strange LLVM Crash
mcheva at cs.mcgill.ca
Sun Mar 15 20:31:42 CDT 2009
This is what I have so far:
// Add optimization passes to the function passes
Where s_pFunctionPasses is a FunctionPassManager I create when initializing
my program and delete at shutdown. I'm running the CFG simplification one
first in the hope that it will speed up the passes that follow it.
Just to make sure I understand: I shouldn't add x86 optimization passes
myself, LLVM will take care of running the appropriate ones for me, is that
correct? If it's incorrect, how do I manage those passes?
Eric Christopher-2 wrote:
> On Mar 15, 2009, at 7:55 AM, Nyx wrote:
>> Is there a webpage documenting these function passes?
> Here's some:
> You can also look in llvm/lib/Transforms/Scalar for runOnFunction ()
>> Which ones should I run
>> to maximize performance?
> There's no right way to determine this. It depends on what you need/
> want from your code.
>> Also, do the machine function passes automatically
>> run (I'm assuming those optimize the final x86 code).
> Yes. Don't forget to add the target data pass.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
View this message in context: http://www.nabble.com/Strange-LLVM-Crash-tp22508882p22530642.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the LLVMdev