Skip to content

instcombine isn't run after DSE #2710

@lattner

Description

@lattner
Bugzilla Link 2338
Resolution FIXED
Resolved on Apr 26, 2011 15:45
Version trunk
OS All
CC @nlewycky

Extended Description

Surprisingly (to me at least) instcombine isn't run anytime late in the optimizer pipeline. This prevents llvm from eliminating the malloc/free in this example, which requires dse to remove the store first.

void malloc(SIZE_TYPE);
void free(void
);
int f(void)
{
char *i = malloc(1);
*i = 1;
free (i);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions