X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FPasses.rst;h=d30c3ca4a00ffe8745ea897730f2eb7a75169d6a;hb=566fb9fe3ed767be7218fb1608ec6a284067d3b0;hp=ed721666638f3dd889b7dc91d310870523918642;hpb=e4b3e9445f0bbd4ecf2c5da6add13ec2423fe2ef;p=oota-llvm.git diff --git a/docs/Passes.rst b/docs/Passes.rst index ed721666638..d30c3ca4a00 100644 --- a/docs/Passes.rst +++ b/docs/Passes.rst @@ -34,9 +34,6 @@ LLVM's Analysis and Transform Passes .. contents:: :local: -Written by `Reid Spencer `_ - and Gordon Henriksen - Introduction ============ @@ -493,7 +490,7 @@ string is available. ``-constprop``: Simple constant propagation ------------------------------------------- -This file implements constant propagation and merging. It looks for +This pass implements constant propagation and merging. It looks for instructions involving only constant operands and replaces them with a constant value instead of an instruction. For example: @@ -508,8 +505,8 @@ becomes i32 3 NOTE: this pass has a habit of making definitions be dead. It is a good idea -to to run a :ref:`Dead Instruction Elimination ` pass sometime -after running this pass. +to run a :ref:`Dead Instruction Elimination ` pass sometime after +running this pass. .. _passes-dce: @@ -1021,8 +1018,8 @@ possible, it transforms the individual ``alloca`` instructions into nice clean scalar SSA form. This combines a simple scalar replacement of aggregates algorithm with the -:ref:`mem2reg ` algorithm because often interact, especially -for C++ programs. As such, iterating between ``scalarrepl``, then +:ref:`mem2reg ` algorithm because they often interact, +especially for C++ programs. As such, iterating between ``scalarrepl``, then :ref:`mem2reg ` until we run out of things to promote works well. @@ -1040,7 +1037,7 @@ as: * Proves conditional branches to be unconditional Note that this pass has a habit of making definitions be dead. It is a good -idea to to run a :ref:`DCE ` pass sometime after running this pass. +idea to run a :ref:`DCE ` pass sometime after running this pass. ``-simplify-libcalls``: Simplify well-known library calls ---------------------------------------------------------