diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-10-27 20:35:55 +0300 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-10-27 21:34:38 +0300 |
| commit | cb90e5356ac1594e95fed8e208d6e0e9b6a87db1 (patch) | |
| tree | 4d295ec61d8521c5ad4d03021d2875365884ded4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 4723c9b3c6c46632a5d66e65d198899894b1e2c5 (diff) | |
[IR] `IRBuilderBase::CreateAdd()`: short-circuit `x + 0` --> `x`
There's precedent for that in `CreateOr()`/`CreateAnd()`.
The motivation here is to avoid bloating the run-time check's IR
in `SCEVExpander::generateOverflowCheck()`.
Refs. https://reviews.llvm.org/D109368#3089809
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
