Chris Fallin
Chris Fallin
I'll note that the mid-end does keep both around, rather than destructively rewriting (because egraphs!), so in the future if we have a more sophisticated cost function extractor there may...
> So basically, what I'm doing now is observe the discrepancy between the LLVM InstCombine pass and Cranelift's mid-end optimizer and then add rules to Cranelift for such missed optimization...
To the immediate question of making this rule actually fire: since we already rewrite `(iadd _ x (ineg _ y))` to `(isub _ x y)`, could you rewrite the left-hand...