Skip to content

Loop Unrolling thwarts dead stores elimination of aggregate elements #1682

@nlewycky

Description

@nlewycky
Bugzilla Link 1310
Resolution DUPLICATE
Resolved on Feb 22, 2010 12:54
Version trunk
OS All

Extended Description

This program is a return undef:

int main(void) {
int foo[12][8];
foo[0][0] = 1;
for (int i = 0; i < 10; ++i) {
foo[i][5] = i;
}
foo[0][1] = 2;
foo[1][1] = 3;
foo[2][1] = 4;
foo[3][1] = 5;

return foo[4][4];
}

but LLVM has unrolled the loop and otherwise left in all of the stores and the
sole load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions