A new pass to provide specific optimizations for certain well-known library
authorReid Spencer <rspencer@reidspencer.com>
Mon, 25 Apr 2005 02:53:12 +0000 (02:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 25 Apr 2005 02:53:12 +0000 (02:53 +0000)
commita7c049bf6a7b5c7982ff87e9ff72bec02c733ebf
treecd796d53d981f8a578834a890e507165fd8a7b6e
parenta498747842072b1665327c98c5b6c942006084a4
A new pass to provide specific optimizations for certain well-known library
calls. The pass visits all external functions in the module and determines
if such function calls can be optimized. The optimizations are specific to
the library calls involved. This initial version only optimizes calls to
exit(3) when they occur in main(): it changes them to ret instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21522 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp [new file with mode: 0644]