This is an archive of the discontinued LLVM Phabricator instance.

InstSimplify: Optimize using dividend in sdiv
ClosedPublic

Authored by majnemer on May 16 2014, 12:21 AM.

Details

Summary

The dividend in an sdiv tells us the largest and smallest possible
results. Use this fact to optimize comparisons against an sdiv with a
constant dividend.

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 9462.May 16 2014, 12:21 AM
majnemer retitled this revision from to InstSimplify: Optimize using dividend in sdiv.
majnemer updated this object.
majnemer added a reviewer: nicholas.
majnemer added a subscriber: Unknown Object (MLST).
majnemer updated this revision to Diff 9464.May 16 2014, 1:46 AM

Address review comments.

majnemer closed this revision.May 19 2014, 7:24 AM
majnemer updated this revision to Diff 9567.

Closed by commit rL208999 (authored by @majnemer).