summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-20 21:01:49 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-22 22:12:56 +0100
commit7e18cd887cd402e3d5465c57c218079e4df65231 (patch)
tree074f7caedd4ab0bb23d87fae7ccad88ccaa018eb /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent8b35159ac720fcb9914e4931b416e17b0fbda771 (diff)
[InstCombine] Whitelist non-refining folds in SimplifyWithOpReplaced
This is an alternative to D98391/D98585, playing things more conservatively. If AllowRefinement == false, then we don't use InstSimplify methods at all, and instead explicitly implement a small number of non-refining folds. Most cases are handled by constant folding, and I only had to add three folds to cover our unit tests / test-suite. While this may lose some optimization power, I think it is safer to approach from this direction, given how many issues this code has already caused. Differential Revision: https://reviews.llvm.org/D99027
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions