diff options
| author | Florian Hahn <flo@fhahn.com> | 2022-01-08 10:29:19 +0000 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2022-01-08 10:31:04 +0000 |
| commit | 9345ab3a45509f61175e73084c03fbb523fb05cb (patch) | |
| tree | a090fc35095bd84a1737a5023572a76121a7ef39 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 0e19186c82a8e6b403788aa9f24752cbc3bb2dc9 (diff) | |
[SCEVExpander] Skip creating <u 0 check, which is always false.
Unsigned compares of the form <u 0 are always false. Do not create such
a redundant check in generateOverflowCheck.
The patch introduces a new lambda to create the check, so we can
exit early conveniently and skip creating some instructions feeding the
check.
I am planning to sink a few additional instructions as follow-ups, but I
would prefer to do this separately, to keep the changes and diff
smaller.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D116811
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
