Skip to content
Commit 0ef7cbc3 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] reduce compare of signbits of 2 values, signed variant

(X s>> BitWidth - 1) == sext (Y s> -1) --> (X ^ Y) < 0
(X s>> BitWidth - 1) != sext (Y s> -1) --> (X ^ Y) > -1

This is the same logic as:
7cbfc39c
...extended to deal with "signed" cast+shift instructions.

https://alive2.llvm.org/ce/z/LLidya
parent 2d7bb606
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment