Skip to content
Commit d037445f authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[DAG] visitSHL - use FoldConstantArithmetic to fold constants in (shl (add x,...

[DAG] visitSHL - use FoldConstantArithmetic to fold constants in (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) fold

Matches what we do in the (shl (mul x, c1), c2) -> (mul x, c1 << c2) fold as well as inside visitShiftByConstant
parent cd8bba94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment