search for: loopvr

Displaying 5 results from an estimated 5 matches for "loopvr".

Did you mean: loopvar
2010 Apr 06
0
[LLVMdev] Get the loop trip count variable
...i<num; i++) { sum += getV(i); } return 0; } -------------------------------------------------------- 2. Then, I translated it to LLVM bitcode by: llvm-gcc -emit-llvm -c test.c 3. Then, I performed some optimization passes as: opt -loop-rotate -loops -loopvr -indvars -loopsimplify -f < test.o > n.o 4. I tried to dump the loop trip count by my own pass (cfginst): opt -load lib/libLLVMCFGInst.so -cfginst < n.o ----------------------------------------------- But I got the following messages: Function getV doesn't have loops Function main h...
2009 Jul 11
0
[LLVMdev] review request for patch
Hi Ryan, In this case there already is an implementation for this, it's just hard to find being in the internals of the LoopVR pass. I'm planning to pull the multiply and udiv support out of there. Your patch looks good but beyond what Dan mentioned you have a bug calculating NewUpper: the constant ranges are half-open intervals where "[5, 10)" includes the value 9 but not 10. This means you need to subt...
2009 Jul 11
2
[LLVMdev] review request for patch
On Fri, Jul 10, 2009 at 8:35 PM, Dan Gohman<gohman at apple.com> wrote: > > > On Jul 10, 2009, at 2:03 PM, Ryan Flynn <parseerror at gmail.com> wrote: > >> I've addressed a "TODO" in ConstantRange and several in its unit test >> by implementing a stricter "multiply" method (it had been returning a >> "full" set for
2010 Apr 06
2
[LLVMdev] Get the loop trip count variable
Thanks a lot for your guys' help!!! I guess once I am able to get *V* (which probably is a pointer to a Value object), then, I can instrument some code at the IR level to dump V. As long as I maintain V at this pass stage, I should be able to dump the loop trip count. This is true, isn't it? Basically, what I am going to do is to add a function call before the loop body, such as:
2010 Jul 13
1
[LLVMdev] Where is Andersen Alias Analysis in LLVM-2.7?
Hi, I was working on alias analysis using LLVM-2.6 previously. But I just downloaded LLVM-2.7 and found AndersenAA is not there. What happened for andersen's IPA alias analysis? Has it been deleted for some reason? Thanks. Lei -------------- next part -------------- An HTML attachment was scrubbed... URL: