This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add tests for missing fold icmp pred (and X, (sh signbit, Y)), 0.
AbandonedPublic

Authored by huihuiz on Jun 7 2019, 2:32 PM.

Details

Summary

Expect to fold:

(X & (signbit l>> Y)) ==/!= 0 -> (X << Y) >=/< 0
(X & (signbit << Y)) ==/!= 0 -> (X l>> Y) >=/< 0

Diff Detail

Repository
rL LLVM