[LLVMdev] L->isLoopInvariant giving wrong results?
writetosrj at gmail.com
Wed Nov 17 17:42:00 CST 2010
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: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 reasons that i'm missing out on?
>> No idea, sorry.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LLVMdev