[SelectionDAG] Use logic right shift to avoid loop hang
Issue was reported in D149033, `Val` can be negative value and arithmetic right shift always keeps the sign bit. BTW, the redundant code `Val = -Val` is removed by this patch.
Loading
Please register or sign in to comment