[LLVMdev] Bounds checking

Vikram S. Adve vadve at uiuc.edu
Fri Nov 30 21:03:07 PST 2007


LLVM itself doesn't do any bounds checks, but if the language front  
end puts in any, they may be optimized (and hoisted) just as other  
comparison operators and branches might.  In other words, the LLVM  
passes don't recognize any bounds checks specifically.

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.org/


On Nov 30, 2007, at 10:28 PM, Chris Lattner wrote:

>
> On Nov 30, 2007, at 5:59 PM, Jon Harrop wrote:
>
>>
>> Does LLVM hoist bounds checks out of inner loops?
>
> LLVM does loop unswitching, so yes in some cases it does.
>
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071130/fcd4dca5/attachment.html>


More information about the llvm-dev mailing list