[llvm] r188507 - Don't do FoldCmpLoadFromIndexedGlobal for non inbounds GEPs

Dan Gohman dan433584 at gmail.com
Fri Aug 16 11:40:01 PDT 2013


On Thu, Aug 15, 2013 at 4:11 PM, Matt Arsenault
<Matthew.Arsenault at amd.com>wrote:

> Author: arsenm
> Date: Thu Aug 15 18:11:07 2013
> New Revision: 188507
>
> URL: http://llvm.org/viewvc/llvm-project?rev=188507&view=rev
> Log:
> Don't do FoldCmpLoadFromIndexedGlobal for non inbounds GEPs
>

I don't see how inbounds is meaningful here. inbounds includes "one past
the end" pointers, so there is no guarantee that a load from an inbounds
getelementptr pointer value will load from within the bounds of the object.

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130816/a73c295b/attachment.html>


More information about the llvm-commits mailing list