diff options
| author | zhijian lin <zhijian@ca.ibm.com> | 2025-11-11 13:34:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-11 13:34:14 -0500 |
| commit | 85d2b10838389a01251d8e3c7b046196429bdc5b (patch) | |
| tree | 4d57e78bc948ea134e9e7f172bed9a1cc90462e2 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | |
| parent | 49dc49e12539e7d158ef09355aaf567033b9d057 (diff) | |
[DAG] Make strictfp attribute only restricts for libm and make non-math optimizations possible (#165464)
the patch
[Add strictfp attribute to prevent unwanted optimizations of libm
calls](https://reviews.llvm.org/D34163)
add `I.isStrictFP()` into
```
if (!I.isNoBuiltin() && !I.isStrictFP() && !F->hasLocalLinkage() &&
F->hasName() && LibInfo->getLibFunc(*F, Func) &&
LibInfo->hasOptimizedCodeGen(Func))
```
it prevents the backend from optimizing even non-math libcalls such as
`strlen` and `memcmp` if a call has the strict floating-point attribute.
For example, it prevent converting strlen and memcmp to milicode call
__strlen and __memcmp.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
