This is an archive of the discontinued LLVM Phabricator instance.

InstSimplify: Optimize signed icmp of -(zext V)
ClosedPublic

Authored by majnemer on May 13 2014, 11:32 PM.

Details

Summary

We know that -(zext V) will always be <= zero, simplify signed icmps
that have these.

Uncovered using http://www.cs.utah.edu/~regehr/souper/

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 9374.May 13 2014, 11:32 PM
majnemer retitled this revision from to InstSimplify: Optimize signed icmp of -(zext V).
majnemer updated this object.
majnemer added a reviewer: nicholas.
majnemer added a subscriber: Unknown Object (MLST).
majnemer closed this revision.May 19 2014, 7:24 AM
majnemer updated this revision to Diff 9562.

Closed by commit rL208809 (authored by @majnemer).