HomePhabricator

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

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.

Details

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