diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-08-01 22:46:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-01 22:46:07 +0800 |
| commit | 4e89d1199c180fd384486ba2796368ec800180ee (patch) | |
| tree | 1533956c29c6c59777dd1dfd388582626c98252b /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | 59ca618e3b7aec8c32e24d781bae436dc99b2727 (diff) | |
[InstCombine] Convert mem intrinsic with null into a noop (#100388)
When src/dest passed into memset/memcpy is null:
```
len == 0: this call is a noop.
len != 0: the behavior is undefined.
```
See also https://llvm.org/docs/LangRef.html#llvm-memset-intrinsics
Alive2: https://alive2.llvm.org/ce/z/tJeRNL
This patch converts these mem intrinsic calls into an assumption `len ==
0` to mitigate code-size bloat caused by JumpThreading.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
