-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tagAll llvm tools that do not have corresponding tag
Description
| 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
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tagAll llvm tools that do not have corresponding tag