[LLVMdev] LoopInfo

Devang Patel dpatel at apple.com
Tue Aug 19 15:17:52 PDT 2008


On Aug 19, 2008, at 3:05 PM, David Greene wrote:

> Some of the LoopInfo APIs are preceeded by this comment:
>
>  // Note that all of these methods can fail on general loops (ie,  
> there may
> not
>  // be a preheader, etc).  For best success, the loop simplification  
> and
>  // induction variable canonicalization pass should be used to  
> normalize
> loops
>  // for easy analysis.  These methods assume canonical loops.
>
> What Pass would that be?  IndVarSimplify?

LoopSimplify. It is in Transforms/Utils folder.
-
Devang



More information about the llvm-dev mailing list