Displaying 1 result from an estimated 1 matches for "word_ofs".
2015 Jun 02
3
[LLVMdev] BasicAA unable to analyze recursive PHI nodes
...ncptr = getelementptr %x, 1
We will 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];
}...