This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Optimize -x s< cst
ClosedPublic

Authored by majnemer on May 14 2014, 4:42 PM.

Details

Summary

This gets rid of a sub instruction by moving the negation to the
constant when valid.

Diff Detail

Event Timeline

majnemer updated this revision to Diff 9406.May 14 2014, 4:42 PM
majnemer retitled this revision from to InstCombine: Optimize -x s< cst.
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 9563.

Closed by commit rL208827 (authored by @majnemer).