HomePhabricator

[InstCombine] Replace an and+icmp with a trunc+icmp

Authored by majnemer on Aug 16 2015, 12:09 AM.

Description

[InstCombine] Replace an and+icmp with a trunc+icmp

Bitwise arithmetic can obscure a simple sign-test. If replacing the
mask with a truncate is preferable if the type is legal because it
permits us to rephrase the comparison more explicitly.

llvm-svn: 245171

Details

Committed
majnemerAug 16 2015, 12:09 AM
Parents
rG5efd530cbcd7: Revert r244127: [PM] Remove a failed attempt to port the CallGraph analysis ...
Branches
Unknown
Tags
Unknown