diff options
| author | yonghong-song <yhs@fb.com> | 2025-01-28 15:19:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 15:19:05 -0800 |
| commit | 8aae191cb6ad1f2dfc468975e4f5e564fea3cbfd (patch) | |
| tree | e8272384bc1070ec0429f6452586bb8425861f93 /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | |
| parent | e7f02241ad4d38fc50b63ad589a024323e6bc3c6 (diff) | |
[BPF] Remove 'may_goto 0' instructions (#123482)
Emil Tsalapatis from Meta reported such a case where 'may_goto 0' insn
is generated by clang compiler. But 'may_goto 0' insn is actually a
no-op so it makes sense to remove that in llvm. The patch is also able
to handle the following code pattern
```
...
may_goto 2
may_goto 1
may_goto 0
...
```
where three may_goto insns can all be removed.
---------
Co-authored-by: Yonghong Song <yonghong.song@linux.dev>
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions
