[PATCH] D20665: Claim NoAlias if two GEPs index different fields of the same struct

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 17:49:35 PDT 2016


eli.friedman added a comment.

Example:

  struct A {
    unsigned char a[10];
    unsigned char b;
  };
  void f(A* x) {
    for (unsigned i = 0; i < 11; ++i)
      x->b += ((unsigned char*)x)[i];
  }


Repository:
  rL LLVM

http://reviews.llvm.org/D20665





More information about the llvm-commits mailing list