-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla
Description
| Bugzilla Link | 2337 |
| Resolution | FIXED |
| Resolved on | Jun 09, 2008 03:28 |
| Version | unspecified |
| OS | Linux |
| CC | @asl |
Extended Description
Per description, SimplfyLibCalls should simplify calls to abs. This isn't necessary for llvm-gcc, but it is useful for compilers that aren't clever enough to fold calls to abs, like clang.
Simple testcase (in clang):
int a(int x) {return abs(x);}
This does bring up an interesting side-issue: can LLVM simplify calls to llabs? llabs, as far as I can tell, only became a reserved external identifier in C99.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzilla