[PATCH] D76566: MergeFunctions.rst - multiply vs shift typo (PR44717)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 08:31:14 PDT 2020


RKSimon created this revision.
RKSimon added reviewers: jonatan1626, hiraditya, dyatkovskiy.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76566

Files:
  llvm/docs/MergeFunctions.rst


Index: llvm/docs/MergeFunctions.rst
===================================================================
--- llvm/docs/MergeFunctions.rst
+++ llvm/docs/MergeFunctions.rst
@@ -99,8 +99,8 @@
 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
 ^^^^^^^^^^^^^^^^^^


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76566.251889.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200322/b609eba8/attachment.bin>


More information about the llvm-commits mailing list