diff options
| author | Philip Reames <listmail@philipreames.com> | 2021-07-01 09:17:04 -0700 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2021-07-01 09:41:55 -0700 |
| commit | 955f12589940634acc6c9901e8b25534808f691c (patch) | |
| tree | 6c781e01d461f8a23cd33bc079f64ced88537baf /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | bc7cc2074b7b7043e05cb46346f1368eb4ae9949 (diff) | |
[instcombine] Fold overflow check using overflow intrinsic to comparison
This follows up to D104665 (which added umulo handling alongside the existing uaddo case), and generalizes for the remaining overflow intrinsics.
I went to add analogous handling to LVI, and discovered that LVI already had a more general implementation. Instead, we can port was LVI does to instcombine. (For context, LVI uses makeExactNoWrapRegion to constrain the value 'x' in blocks reached after a branch on the condition `op.with.overflow(x, C).overflow`.)
Differential Revision: https://reviews.llvm.org/D104932
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
