summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-07-18 09:58:54 -0700
committerCraig Topper <craig.topper@sifive.com>2022-07-18 10:54:45 -0700
commit0b0275289961dd49315bcb3b8dfcae5687f23eaa (patch)
tree640e122cc92ab7afca222570eb837ac87d3513a5 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent464b3a9d8a1a86b53278c2ecc59db78dcaf0593f (diff)
[RISCV] Optimize (seteq (i64 (and X, 0xffffffff)), C1)
(and X, 0xffffffff) requires 2 shifts in the base ISA. Since we know the result is being used by a compare, we can use a sext_inreg instead of an AND if we also modify C1 to have 33 sign bits instead of 32 leading zeros. This can also improve the generated code for materializing C1. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D129980
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions