[LLVMdev] L->isLoopInvariant giving wrong results?

Sreeraj a writetosrj at gmail.com
Wed Nov 17 14:35:08 PST 2010


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.
>
> -Chris
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101118/12907155/attachment.html>


More information about the llvm-dev mailing list