We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abd8f1 commit d5b21efCopy full SHA for d5b21ef
compiler/rustc_mir_transform/src/jump_threading.rs
@@ -17,6 +17,10 @@
17
//! if assigning anything different from `value` to `place` turns the `SwitchInt`
18
//! into `Goto { target }`.
19
//!
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
+//!
24
//! We then walk the CFG backwards transforming the set of conditions.
25
//! When we find a fulfilling assignment, we record a `ThreadingOpportunity`.
26
//! All `ThreadingOpportunity`s are applied to the body, by duplicating blocks if required.
0 commit comments