diff options
| author | Mingming Liu <mingmingl@google.com> | 2023-04-27 17:49:41 -0700 |
|---|---|---|
| committer | Mingming Liu <mingmingl@google.com> | 2023-05-02 17:34:53 -0700 |
| commit | bb4ba96ed2bd8ca7cc902abb07385a4058fe3ee6 (patch) | |
| tree | 836ab2434b6ffea5b770a6eed08bcf6c6d8101fa /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 297c10fd175a2f0ff7cb293fcb2d149b065eaabe (diff) | |
[NFC] Add a test case to make sure EarlyCSE preserves !prof when one
instruction CSE'ed another.
- This should be a part of D148877. Before that patch, !prof is not added to known-id-set [1], and turns out unknown types of metadata are dropped in the implementation [2].
- This test is mainly added to make sure there won't be regressions for this kind of pattern. The pattern is observed it in application code; looks like the result of indirect call is used as function arguments initially; after the function is inlined load-after-store CSE opportunity is exposed.
[1] https://github.com/llvm/llvm-project/blob/f478721231bdb71ba8f0f6fb21673b9b7f652add/llvm/lib/Transforms/Utils/Local.cpp#L2727-L2741
[2] https://github.com/llvm/llvm-project/blob/ade3c6a6a88ed3a9b06c076406f196da9d3cc1b9/llvm/lib/Transforms/Utils/Local.cpp#L2639
Differential Revision: https://reviews.llvm.org/D149396
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
