diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-02-19 10:17:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 10:17:07 -0800 |
| commit | 2bf473bd546e65f8fc2f0d5006b8c8ef07259e24 (patch) | |
| tree | 7bff4f7ff1e99659aa23e004a567b9a91b7b81f5 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 9ebb618d03cb29c37e3178428dcf52e1ac4f1cc2 (diff) | |
[GlobalOpt] Don't query TTI on a llvm.memcpy declaration. (#127760)
Querying TTI creates a Subtarget object, but an llvm.memcpy declaration
doesn't have target-cpu and target-feature attributes like functions
with definitions. This can cause a warning to be printed on RISC-V
because the target-abi in the Module requires floating point, but the
subtarget features don't enable floating point. So far we've only seen
this in LTO when an -mcpu is not supplied for the TargetMachine.
To fix this, get TTI for the calling function instead.
Fixes the issue reported here
https://github.com/llvm/llvm-project/issues/69780#issuecomment-2665273161
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
