[LLVMdev] More Qs about llvm IR to access struct fields

Krzysztof Parzyszek
Fri, 18 Apr 2014 12:40:32 -0000

On 4/17/2014 2:41 PM, Rodney M. Bates wrote:
>
> Question 1:
> Does this choice affect the optimization possibilities?

Depends on how advanced the alias analysis is these days (it is mostly
the alias analysis that could suffer).  I haven't looked into the AA
code much, but from what I remember, it could be affected by how the
data addresses are constructed.  Look into the TBAA metadata and whether
there is any expectation of correlation between the GEP structure and
the TBAA information. (Sorry, I don't have exact answers off the top of
my head.)

-Krzysztof


--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation