summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-08-18 12:51:17 +0100
committerFlorian Hahn <flo@fhahn.com>2024-08-18 12:51:17 +0100
commite9e3a183d6d8d8729223b7131aa57fd9f02f0440 (patch)
tree56d67f2603fb65d2cba2630a3f306bb664bd3d76 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp
parent71801707e33c235656b172fa7dfb8662473a95c2 (diff)
[LV] Don't cost branches and conditions to empty blocks.
Update the legacy cost model skip branches with successors blocks that are empty or only contain dead instructions, together with their conditions. Such branches and conditions won't result in any generated code and will be cleaned up by VPlan transforms. This fixes a difference between the legacy and VPlan-based cost model. When running LV in its usual pipeline position, such dead blocks should already have been cleaned up, but they might be generated manually or by fuzzers. Fixes https://github.com/llvm/llvm-project/issues/100591.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions