Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit ed56048

Browse files
committed
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 <[email protected]>! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206650 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 904f8dc commit ed56048

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/Passes.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ instructions that are obviously dead.
540540
A trivial dead store elimination that only considers basic-block local
541541
redundant stores.
542542

543+
.. _passes-functionattrs:
544+
543545
``-functionattrs``: Deduce function attributes
544546
----------------------------------------------
545547

@@ -648,7 +650,7 @@ program, and is used for a wide variety of program transformations.
648650
------------------------------------------------
649651

650652
Combine instructions to form fewer, simple instructions. This pass does not
651-
modify the CFG This pass is where algebraic simplification happens.
653+
modify the CFG. This pass is where algebraic simplification happens.
652654

653655
This pass combines things like:
654656

@@ -681,6 +683,13 @@ program:
681683
shifts.
682684
#. … etc.
683685

686+
This pass can also simplify calls to specific well-known function calls (e.g.
687+
runtime library functions). For example, a call ``exit(3)`` that occurs within
688+
the ``main()`` function can be transformed into simply ``return 3``. Whether or
689+
not library calls are simplified is controlled by the
690+
:ref:`-functionattrs <passes-functionattrs>` pass and LLVM's knowledge of
691+
library calls on different targets.
692+
684693
``-internalize``: Internalize Global Symbols
685694
--------------------------------------------
686695

@@ -1011,14 +1020,6 @@ as:
10111020
Note that this pass has a habit of making definitions be dead. It is a good
10121021
idea to run a :ref:`DCE <passes-dce>` pass sometime after running this pass.
10131022

1014-
``-simplify-libcalls``: Simplify well-known library calls
1015-
---------------------------------------------------------
1016-
1017-
Applies a variety of small optimizations for calls to specific well-known
1018-
function calls (e.g. runtime library functions). For example, a call
1019-
``exit(3)`` that occurs within the ``main()`` function can be transformed into
1020-
simply ``return 3``.
1021-
10221023
.. _passes-simplifycfg:
10231024

10241025
``-simplifycfg``: Simplify the CFG

0 commit comments

Comments
 (0)