Skip to content
Commit 39a762d1 authored by Reid Spencer's avatar Reid Spencer
Browse files

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.

llvm-svn: 21522
parent 985f4842
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment