This is an archive of the discontinued LLVM Phabricator instance.

[NFC][InstCombine] Moving overflow computation logic from InstCombine to ValueTracking
ClosedPublic

Authored by opaparo on May 10 2018, 10:13 AM.

Details

Summary

Moving the overflow computation logic of signed mul and un/signed sub from the internals of InstCombine to ValueTracking (where it can be widely used).

Diff Detail

Repository
rL LLVM

Event Timeline

spatel accepted this revision.May 10 2018, 10:27 AM

LGTM.

This revision is now accepted and ready to land.May 10 2018, 10:27 AM
spatel added inline comments.May 10 2018, 10:28 AM
lib/Analysis/ValueTracking.cpp
3706–3711 ↗(On Diff #146149)

Formatting looks off - run clang-format.

This revision was automatically updated to reflect the committed changes.