Prabhat Kumar Saraswat
2008-Feb-05 10:09 UTC
[LLVMdev] Induction Variables vs Loop Control Variable
Hi all, I was wondering if its possible to identify loop control variables from the induction variables in a Loop using LLVM. Also, How does one can use the LoopInfo class to identify the natural loops from the IR. In other words how to use the class in the pass? Thanks, Regards Prabhat
Chris Lattner
2008-Feb-05 18:09 UTC
[LLVMdev] Induction Variables vs Loop Control Variable
On Tue, 5 Feb 2008, Prabhat Kumar Saraswat wrote:> I was wondering if its possible to identify loop control > variables from the induction variables in a Loop using LLVM. > Also, How does one can use the LoopInfo class to identify the natural > loops from the IR. In other words how to use the class in the pass?I'd strongly suggest looking at some existing loop pass like LICM or loop strength reduction or induction variable simplification. Induction Variable Simplification specifically will show you how to rely on it and how to identifier induction variables. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Maybe Matching Threads
- [LLVMdev] Walking all the predecessors for a basic block
- [LLVMdev] Walking all the predecessors for a basic block
- How to best deal with undesirable Induction Variable Simplification?
- [LLVMdev] Walking all the predecessors for a basic block
- How to best deal with undesirable Induction Variable Simplification?