Skip to content

Commit d5b21ef

Browse files
committed
Explicit notation.
1 parent 6abd8f1 commit d5b21ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_mir_transform/src/jump_threading.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
//! if assigning anything different from `value` to `place` turns the `SwitchInt`
1818
//! into `Goto { target }`.
1919
//!
20+
//! In this file, we denote as `place ?= value` the existence of a replacement condition
21+
//! on `place` with given `value`, irrespective of the polarity and target of that
22+
//! replacement condition.
23+
//!
2024
//! We then walk the CFG backwards transforming the set of conditions.
2125
//! When we find a fulfilling assignment, we record a `ThreadingOpportunity`.
2226
//! All `ThreadingOpportunity`s are applied to the body, by duplicating blocks if required.

0 commit comments

Comments
 (0)