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

[InstCombine] Fold (x + C1) * (-1<<C2) --> (-C1 - x) * (1<<C2)

Negator knows how to do this, but the one-use reasoning is getting
a bit muddy here, we don't really want to increase instruction count,
so we need to both lie that "IsNegation" and have an one-use check
on the outermost LHS value.
parent 0c1c756a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment