[llvm-dev] InstCombine GEP

Sanjoy Das via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 10 10:24:27 PDT 2017


Hi Ashutosh,

On Thu, Aug 10, 2017 at 12:22 AM, Nema, Ashutosh via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> I’m not sure how transforming GEP offset to i8 type will help alias analysis
> & SROA for the mentioned test case.

It should neither help nor hinder AA or SROA -- the two GEPs (the
complex one and the simple one) are equivalent.  Since memory isn't
typed in LLVM, having the GEP in terms of %struct.ABC does not provide
any extra information.

-- Sanjoy

>
>
>
> Regards,
>
> Ashutosh
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>


More information about the llvm-dev mailing list