summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-01-07 08:06:51 -0500
committerSanjay Patel <spatel@rotateright.com>2022-01-07 13:23:09 -0500
commit68defc013444f21a46757b64e9144bb218c9e7eb (patch)
tree060c413190285e1315dce0cce62b50fddf7c9d06 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentfb7cf90071da733e138ae6d39a0dd7efc96438f2 (diff)
[x86] make select lowering using SBB hack more flexible
select (X != 0), -1, Y --> 0 - X; or (sbb), Y select (X != 0), Y, -1 --> X - 1; or (sbb), Y We already had these x86 carry-flag transforms, but one was over-specified to handle a "0" select arm only. That's just a special-case of the more general pattern (the 'or' will be deleted if Y is zero). This is part of solving #53006, but it misses that example because some other combine has already converted that exact pattern into math ops. Differential Revision: https://reviews.llvm.org/D116765
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions