Skip to content

Commit a778df8

Browse files
committed
Use the better wording already suggested
1 parent 5faa597 commit a778df8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/docs/HowToUpdateDebugInfo.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ When to merge instruction locations
7777

7878
A transformation should merge instruction locations if it replaces multiple
7979
instructions with one or more new instructions, *and* the new instruction(s)
80-
produce the output of more than one of the original instructions. The API to
81-
use is ``Instruction::applyMergedLocation``, and the new location for each new
82-
instruction should be a merge of the locations of all the instructions whose
83-
output is produced the new instructions; typically, this includes any
84-
instruction being RAUWed by a new instruction, and excludes any instruction that
85-
only produces an intermediate value used by the RAUWed instruction.
80+
produce the output of more than one of the original instructions. The API to use
81+
is ``Instruction::applyMergedLocation``. For each new instruction I, its new
82+
location should be a merge of the locations of all instructions whose output is
83+
produced by I. Typically, this includes any instruction being RAUWed by a new
84+
instruction, and excludes any instruction that only produces an intermediate
85+
value used by the RAUWed instruction.
8686

8787
The purpose of this rule is to ensure that a) the single merged instruction
8888
has a location with an accurate scope attached, and b) to prevent misleading

0 commit comments

Comments
 (0)