search for: sreeraj

Displaying 9 results from an estimated 9 matches for "sreeraj".

2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
...am manually able to hoist the Loop invariant instruction to the basicBlock terminator, by editing the human readable form and then using llvm-as to convert it into bytecode. On Thu, Nov 18, 2010 at 4:01 AM, Chris Lattner <clattner at apple.com> wrote: > > On Nov 17, 2010, at 1:38 PM, Sreeraj a wrote: > > > Thanks Chris, > > > > I was able to weed out loop invariant arithmetic instructions using > isLoopInvariant function. > > when i try to do an instruction->moveBefore(bb->getTerminator()) i'm > getting a seg fault. > > any obvious reas...
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
i am getting seg fault on functions like I->eraseFromParent also. I'm assuming that the problem comes when i change the loop structure. On Thu, Nov 18, 2010 at 4:05 AM, Sreeraj a <writetosrj at gmail.com> wrote: > The funny thing is that i am manually able to hoist the Loop invariant > instruction to the basicBlock terminator, by editing the human readable form > and then using llvm-as to convert it into bytecode. > > > On Thu, Nov 18, 2010 at 4:0...
2010 Nov 17
1
[LLVMdev] L->isLoopInvariant giving wrong results?
...invariant if all of its operands are loop-invariant for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) if (!curLoop->isLoopInvariant(I.getOperand(i))) return false; // If we got this far, the instruction is loop invariant! return true; } On Thu, Nov 18, 2010 at 5:12 AM, Sreeraj a <writetosrj at gmail.com> wrote: > i am getting seg fault on functions like I->eraseFromParent also. > I'm assuming that the problem comes when i change the loop structure. > > > On Thu, Nov 18, 2010 at 4:05 AM, Sreeraj a <writetosrj at gmail.com> wrote: > &g...
2010 Nov 29
1
[LLVMdev] Segmentation fault on Instruction.moveBefore()
Hi, I'm getting a segmentation fault trying to write a small(incomplete) LICM pass whenever i try to do I->moveBefore(pre->getTerminator()); (wherer I is Instruction*, Pre is BasicBlock*) Is there any prerequisites for executing this function that i am not doing? Thanks in advance. sreeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101130/c8c68b84/attachment.html>
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
...ion. when i try to do an instruction->moveBefore(bb->getTerminator()) i'm getting a seg fault. any obvious reasons that i'm missing out on? Thanks in advance On Wed, Nov 17, 2010 at 10:41 PM, Chris Lattner <clattner at apple.com> wrote: > > On Nov 17, 2010, at 2:20 AM, Sreeraj a wrote: > > > Hi, > > I'm trying to write a simple pass to print out Loop invariant > instructions, using the > > Loop::isLoopInvariant(Instruction *I) > > function. it is giving me false value on instructions which should be > loop invariant. > > > &g...
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
On Nov 17, 2010, at 1:38 PM, Sreeraj a wrote: > Thanks Chris, > > I was able to weed out loop invariant arithmetic instructions using isLoopInvariant function. > when i try to do an instruction->moveBefore(bb->getTerminator()) i'm getting a seg fault. > any obvious reasons that i'm missing out on? No...
2010 Dec 02
1
[LLVMdev] Size of instructions
Hi i am trying to write an optimization wherein i need to get the size of each instruction in the loop. is there any framework that allows me to find out the size of an Instruction I ? thanks. sreeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101202/94736d3f/attachment.html>
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
On Nov 17, 2010, at 2:20 AM, Sreeraj a wrote: > Hi, > I'm trying to write a simple pass to print out Loop invariant instructions, using the > Loop::isLoopInvariant(Instruction *I) > function. it is giving me false value on instructions which should be loop invariant. > > the code i am using is: The isLoopInv...
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
Hi, I'm trying to write a simple pass to print out Loop invariant instructions, using the Loop::isLoopInvariant(Instruction *I) function. it is giving me false value on instructions which should be loop invariant. the code i am using is: bool MyLoopPass::runOnLoop(Loop * L, LPPassManager &lpm){ BasicBlock* lat=L->getLoopLatch(); for (BasicBlock::iterator i = lat->begin(), e =