diff options
| author | Philip Reames <preames@rivosinc.com> | 2024-08-13 14:58:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-13 14:58:16 -0700 |
| commit | ac6e1fd0c089043fe60bd0040ba3cad884f00206 (patch) | |
| tree | f897ddc1d64f88e0c8bfddd8a236c2c0cf2de977 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.cpp | |
| parent | 5ae9faa538d100ab38f6f4f99c924de0e4270272 (diff) | |
[RISCV][TTI] Cost non-power-of-two size changing casts (#101047)
For a cast with src and destination size being unequal, we were costing
the cast as if it were being scalarized, when in fact we can often
promote such cases to a wider legal type.
Note that for casts with equal size (i.e. bitcast, some fp<->i, and
ptrtoint) the generic logic in BasicTTI already assumed promotion. It
just doesn't handle the cast where source and destination are both
promoted to non-equal types.
This is analogous to d3fd28a, but with the same reasoning applied to
casts instead.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPlatformPythonInterface/ScriptedPlatformPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
