[llvm] [Docs] Fix link in LoopTerminology (NFC) (PR #131138)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 13 06:14:36 PDT 2025
https://github.com/kasuga-fj created https://github.com/llvm/llvm-project/pull/131138
The link should refer to section of 'phi' Instruction in LangRef, but it referred to a subsection of 'fcmp' Instruction. Replace it with appropriate one.
>From 12ae5cc3c6ff639b32f0470b9952c5de5545334d Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga <kasuga.ryotaro at fujitsu.com>
Date: Thu, 13 Mar 2025 12:57:40 +0000
Subject: [PATCH] [Docs] Fix link in LoopTerminology (NFC)
The link should refer to section of 'phi' Instruction in LangRef,
but it referred to a subsection of 'fcmp' Instruction. Replace it with
appropriate one.
---
llvm/docs/LoopTerminology.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/docs/LoopTerminology.rst b/llvm/docs/LoopTerminology.rst
index f15f9e682d7e5..6978a9b421613 100644
--- a/llvm/docs/LoopTerminology.rst
+++ b/llvm/docs/LoopTerminology.rst
@@ -352,7 +352,7 @@ will be deleted by :ref:`-instcombine <passes-instcombine>`.
Note that an exit block is outside of a loop, so how can such a phi "close"
the value inside the loop since it uses it outside of it ? First of all,
for phi nodes, as
-`mentioned in the LangRef <https://llvm.org/docs/LangRef.html#id311>`_:
+`mentioned in the LangRef <https://llvm.org/docs/LangRef.html#phi-instruction>`_:
"the use of each incoming value is deemed to occur on the edge from the
corresponding predecessor block to the current block". Now, an
edge to an exit block is considered outside of the loop because
More information about the llvm-commits
mailing list