[llvm] 6a6a83c - MergeFunctions.rst - multiply vs shift typo (PR44717)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 03:13:49 PDT 2020


Author: Simon Pilgrim
Date: 2020-03-23T10:13:25Z
New Revision: 6a6a83c6e9bf6ed5e8592bbe422535dd774e5064

URL: https://github.com/llvm/llvm-project/commit/6a6a83c6e9bf6ed5e8592bbe422535dd774e5064
DIFF: https://github.com/llvm/llvm-project/commit/6a6a83c6e9bf6ed5e8592bbe422535dd774e5064.diff

LOG: MergeFunctions.rst - multiply vs shift typo (PR44717)

The doc is suggesting that a mul-by-2 is the same as a ashr-by-1 instead of shl-by-1

Differential Revision: https://reviews.llvm.org/D76566

Added: 
    

Modified: 
    llvm/docs/MergeFunctions.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/MergeFunctions.rst b/llvm/docs/MergeFunctions.rst
index cee18c3fd674..13294129538c 100644
--- a/llvm/docs/MergeFunctions.rst
+++ b/llvm/docs/MergeFunctions.rst
@@ -99,8 +99,8 @@ and a ``void*`` as equal.
 This is just an example; more possible details are described a bit below.
 
 As another example, the reader may imagine two more functions. The first
-function performs a multiplication on 2, while the second one performs an
-arithmetic right shift on 1.
+function performs a multiplication by 2, while the second one performs an
+logical left shift by 1.
 
 Possible solutions
 ^^^^^^^^^^^^^^^^^^


        


More information about the llvm-commits mailing list