Skip to content

pass.if_changed

pass dialect

Execute a nested pipeline body when the immediately preceding sibling statement changed the current anchor.

Operation contract

Property Value
Semantic phase
Traits UnknownEffects, ImplicitTerminator(pass.yield)

Signature

Kind Name Type Cardinality Description
Region body region required Body executed when the preceding sibling reported a mutation. (terminator pass.yield.)

Examples

pass.if_changed pipeline {
  canonicalize
  cse
}