Skip to content

Commit 93806b3

Browse files
committed
fix
1 parent a17be2c commit 93806b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Dialect/LLHD/Transforms/LowerProcesses.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ static void simplifyProcess(ProcessOp &processOp) {
376376
IRRewriter rewriter(builder);
377377
(void)simplifyRegions(rewriter, processOp->getRegions());
378378

379-
// simplifyRegions does not prune the destination operands of the
380-
// `llhd.wait` operation because it does not implement BranchOpInterface, due
381-
// to its side-effect semantics. Implementing BranchOpInterface could allow
382-
// other optimizations to forward branch operands from the llhd.wait
383-
// operation to the destination block where execution resumes. However, this
384-
// would be invalid, as the SSA value might change across the wait operation.
379+
// simplifyRegions does not prune the destination operands of the `llhd.wait`
380+
// operation because it does not implement BranchOpInterface, due to its
381+
// side-effect semantics. Implementing BranchOpInterface could allow other
382+
// optimizations to forward branch operands from the `llhd.wait` operation to
383+
// the destination block where execution resumes. However, this would be
384+
// invalid, as the SSA value might change across the wait operation.
385385
// Therefore, we manually prune the destination block arguments ourselves.
386386
for (auto &block : processOp.getBody()) {
387387
auto waitOp = dyn_cast<WaitOp>(block.getTerminator());

0 commit comments

Comments
 (0)