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

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

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

As mentioned by @nikic on rGef5debac4302 (although that was just about SHL), we can merge the guaranteed top zero bits from the shifted value, and then, if a min shift amount is known, zero out the top bits as well.

SHL tests / handling will be added in a follow up patch.
parent e73b20c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment