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

[SelectionDAG] ComputeKnownBits - merge getValidMinimumShiftAmountConstant()...

[SelectionDAG] ComputeKnownBits - merge getValidMinimumShiftAmountConstant() and generic ISD::SHL handling.

As mentioned by @nikic on rGef5debac4302, we can merge the guaranteed bottom zero bits from the shifted value, and then, if a min shift amount is known, zero out the bottom bits as well.
parent bad6032b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment