HomePhabricator

[InstCombine] Fold x & (-1 >> y) != x to x u> (-1 >> y)

Description

[InstCombine] Fold x & (-1 >> y) != x to x u> (-1 >> y)

Summary:
A complementary fold to D49179.

https://bugs.llvm.org/show_bug.cgi?id=38123
https://rise4fun.com/Alive/Rny

Caveat: one more thing in test/Transforms/InstCombine/icmp-logical.ll breaks.

Reviewers: spatel, craig.topper

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D49205

Details

Committed
lebedevriJul 12 2018, 7:56 AM
Reviewer
spatel
Differential Revision
D49205: [InstCombine] Fold x & (-1 >> y) != x to x u> (-1 >> y)
Parents
rL336910: [Tooling] Get working directory properly without assuming real file system.
Branches
Unknown
Tags
Unknown