-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillallvm:SCEVScalar EvolutionScalar Evolutionloopoptim
Description
| Bugzilla Link | 11409 |
| Version | trunk |
| OS | Linux |
| CC | @atrick |
Extended Description
opt -O2 does a pretty decent job of handling this loop:
int f(int i) { int j, k = 0; for (j = i; j < i + 10; ++j) ++k; return k; }
but it's not taking advantage of the no-signed-wrap property. GCC optimizes it straight down to "return 10".
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillallvm:SCEVScalar EvolutionScalar Evolutionloopoptim