-- Special case for (assert (e1 == e2) body)
-- where we want to CSE e2 into e1
and just refer the note? The note explains it better
Note [CSE of assert]
~~~~~~~~~~~~~~~~~~~~
When we encounter (assert (eq e1 e2) body) we would like to use the
information that e1 is equal to e2 to simplify body. Therefore if e1
and e2 are both variables (say v1 and v2) we tweak the reverse map so
to change entries that used to say v1 to say v2 instead.
@dcrc2 pointed out that this comment is a bit confusing.
https://github.com/microsoft/knossos-ksc/blob/5e1d2cdefd7271e728a8e936c03f8b3ff8d52ab7/src/ksc/CSE.hs#L127-L129
Should we drop the
and just refer the note? The note explains it better