Skip to content
Unverified Commit 3a3c9519 authored by Roman Lebedev's avatar Roman Lebedev
Browse files

[InstCombine] Negator: 0 - (X + Y) --> (-X) - Y iff a single operand negated

This was the most obvious regression in
f5df5cd5.f5df5cd5

We really don't want to do this if the original/outermost subtraction
isn't a negation, and therefore doesn't go away - just sinking negation
isn't a win. We are actually appear to be missing folds so hoist it.

https://rise4fun.com/Alive/tiVe
parent 26f79e25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment