From 98a3bcc74cf13e24cc0001c2cc7e25a28cc60944 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 30 Mar 2025 20:51:57 -0700 Subject: [PATCH] [doc][LLVM] Fix typo in the Kaleidoscope tutorial "to make the add's lexically identical" -> "to make the adds lexically identical" --- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst index 56608020fc0c9..5ebff3b0474b1 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst @@ -86,7 +86,7 @@ instead of computing "``x+3``" twice. Unfortunately, no amount of local analysis will be able to detect and correct this. This requires two transformations: reassociation of -expressions (to make the add's lexically identical) and Common +expressions (to make the adds lexically identical) and Common Subexpression Elimination (CSE) to delete the redundant add instruction. Fortunately, LLVM provides a broad range of optimizations that you can use, in the form of "passes".