diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-04-18 21:19:06 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-04-18 21:19:06 +0000 |
| commit | 0177e18c5172a0e38297f2b5e79498b8c16d7da4 (patch) | |
| tree | fe82b8045f1db208f94d99a3d1fa31ebffff6cc6 | |
| parent | d0d38bf91ede03abad5fb89e303e121502a42ca1 (diff) | |
| download | bcm5719-llvm-0177e18c5172a0e38297f2b5e79498b8c16d7da4.tar.gz bcm5719-llvm-0177e18c5172a0e38297f2b5e79498b8c16d7da4.zip | |
Remove -simplify-libcalls pass form Passes documentation
This pass was removed in r184459.
Also added note that the InstCombine pass does library call
simplification.
Patch slightly modified from one by Daniel Liew
<daniel.liew@imperial.ac.uk>!
llvm-svn: 206650
| -rw-r--r-- | llvm/docs/Passes.rst | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/llvm/docs/Passes.rst b/llvm/docs/Passes.rst index b2703b7c030..b51829d3a3b 100644 --- a/llvm/docs/Passes.rst +++ b/llvm/docs/Passes.rst @@ -540,6 +540,8 @@ instructions that are obviously dead. A trivial dead store elimination that only considers basic-block local redundant stores. +.. _passes-functionattrs: + ``-functionattrs``: Deduce function attributes ---------------------------------------------- @@ -648,7 +650,7 @@ program, and is used for a wide variety of program transformations. ------------------------------------------------ Combine instructions to form fewer, simple instructions. This pass does not -modify the CFG This pass is where algebraic simplification happens. +modify the CFG. This pass is where algebraic simplification happens. This pass combines things like: @@ -681,6 +683,13 @@ program: shifts. #. … etc. +This pass can also simplify calls to specific well-known function calls (e.g. +runtime library functions). For example, a call ``exit(3)`` that occurs within +the ``main()`` function can be transformed into simply ``return 3``. Whether or +not library calls are simplified is controlled by the +:ref:`-functionattrs <passes-functionattrs>` pass and LLVM's knowledge of +library calls on different targets. + ``-internalize``: Internalize Global Symbols -------------------------------------------- @@ -1011,14 +1020,6 @@ as: Note that this pass has a habit of making definitions be dead. It is a good idea to run a :ref:`DCE <passes-dce>` pass sometime after running this pass. -``-simplify-libcalls``: Simplify well-known library calls ---------------------------------------------------------- - -Applies a variety of small optimizations for calls to specific well-known -function calls (e.g. runtime library functions). For example, a call -``exit(3)`` that occurs within the ``main()`` function can be transformed into -simply ``return 3``. - .. _passes-simplifycfg: ``-simplifycfg``: Simplify the CFG |

