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).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D46704
[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
Event Timelineopaparo added a child revision: D46380: [InstSimplify] Adding safety checks for 'shl', 'ashr' and 'lshr'. This revision is now accepted and ready to land.May 10 2018, 10:27 AM
Closed by commit rL332026: [InstCombine] Moving overflow computation logic from InstCombine to… (authored by opaparo). · Explain WhyMay 10 2018, 12:49 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 146149 include/llvm/Analysis/ValueTracking.h
lib/Analysis/ValueTracking.cpp
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
|
Formatting looks off - run clang-format.