Displaying 1 result from an estimated 1 matches for "section_t".
Did you mean:
  section_
  
2015 Jun 02
3
[LLVMdev] BasicAA unable to analyze recursive PHI nodes
...basically always return MayAlias for %x and any other value
because aliasPHI recurses on the first value and gives up.
There are, however, many cases where this is too conservative.
Take the following example:
typedef struct {
  unsigned num_words;
  unsigned word_ofs;
  const unsigned *data;
} section_t;
void test(section_t* restrict section, unsigned* restrict dst)
{ 
  while (section->data != NULL) {
    const unsigned *src = section->data;
    for (unsigned i=0; i < section->num_words; ++i) {
      dst[section->word_ofs + i] = src[i];
    }   
    ++section;
  }
}
There is no...