[Docs] Fix link in LoopTerminology (NFC) (#131138)

The link should refer to the section of 'phi' Instruction in the
LangRef, but it referred to the subsection of 'fcmp' Instruction.
Replace it with appropriate one.
This commit is contained in:
Ryotaro Kasuga 2025-03-26 17:59:38 +09:00 committed by GitHub
parent 894b27a746
commit 29ca03f19a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" 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, the value inside the loop since it uses it outside of it ? First of all,
for phi nodes, as 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 "the use of each incoming value is deemed to occur on the edge from the
corresponding predecessor block to the current block". Now, an corresponding predecessor block to the current block". Now, an
edge to an exit block is considered outside of the loop because edge to an exit block is considered outside of the loop because