[LLVMdev] L->isLoopInvariant giving wrong results?

Chris Lattner clattner at apple.com
Wed Nov 17 14:31:00 PST 2010


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





More information about the llvm-dev mailing list