diff options
| author | Craig Topper <craig.topper@sifive.com> | 2023-05-08 09:52:52 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2023-05-08 09:52:52 -0700 |
| commit | 62e6082dcc7a7ce22fb98f9a0fd98a0385001437 (patch) | |
| tree | 4ce467897aaefeed13aafb85c68c56dc0f080ef1 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h | |
| parent | 455cb2e57883b7360b427cb413b990448ab13190 (diff) | |
[RISCV] Implement shouldTransformSignedTruncationCheck.
This helps avoid constant materialization for the patterns
InstCombine emits for something like INT_MIN <= X && x <= INT_MAX.
See top of changed test files for more detailed explanation.
I've enabled this for i16 when Zbb is enabled. sext.b did not seem
to be a benefit due to the constants folding into addi/sltiu.
This an alternative to https://reviews.llvm.org/D149814
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D149977
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
