Skip to content

Commit ae478c0

Browse files
committed
[RLE-DSE] Update some comments in DSE
1 parent 7f6da3b commit ae478c0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/SILPasses/Scalar/DeadStoreElimination.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ constexpr unsigned MaxPartialDeadStoreCountLimit = 1;
125125
/// basic block.
126126
///
127127
/// Initially WriteSetIn is set to true. After the basic block is processed, if
128-
/// its
129-
/// WriteSetOut is different from WriteSetIn, WriteSetIn is initialized to the
130-
/// value of WriteSetOut and the data flow is rerun.
128+
/// its WriteSetOut is different from WriteSetIn, WriteSetIn is initialized to
129+
/// the value of WriteSetOut and the data flow is rerun.
131130
///
132131
/// Instructions in each basic block are processed in post-order as follows:
133132
///
@@ -137,7 +136,7 @@ constexpr unsigned MaxPartialDeadStoreCountLimit = 1;
137136
/// any location it may alias with from the WriteSetOut.
138137
///
139138
/// 3. When an instruction reads from memory in an unknown way, the WriteSetOut
140-
/// bit is cleared if the instruction can read the MemLocation.
139+
/// bit is cleared if the instruction can read the corresponding MemLocation.
141140
///
142141
class BBState {
143142
public:
@@ -203,8 +202,8 @@ class BBState {
203202
BBKillSet.resize(MemLocationCount, false);
204203
}
205204

206-
/// Check whether the WriteSetIn has changed. If it does, we need to reiterate
207-
/// to reach fixed point.
205+
/// Check whether the WriteSetIn has changed. If it does, we need to rerun
206+
/// the data flow to reach fixed point.
208207
bool updateWriteSetIn();
209208

210209
/// Functions to manipulate the write set.

0 commit comments

Comments
 (0)