[LLVMdev] getTripCount requires which optimization passes?

Dan Gohman gohman at apple.com
Thu May 13 11:28:21 PDT 2010


On May 10, 2010, at 2:20 PM, Trevor Harmon wrote:

> On May 10, 2010, at 11:45 AM, Dan Gohman wrote:
> 
>> just make your front-ends add -indvars before
>> adding your pass.
> 
> Sorry, I don't have a clue how to do this, and I can't find any docs about it. I'm using llvm-gcc; how can I tell it to add a pass?

llvm-gcc uses include/llvm/Support/StandardPasses.h. It already
includes indvars and others.

Dan





More information about the llvm-dev mailing list