summaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2025-01-29 11:00:50 +0800
committerGitHub <noreply@github.com>2025-01-29 11:00:50 +0800
commitff271d04a2fe0af0ad43e9c0bce1cbb10912dc32 (patch)
tree714ff0621fb50a07333f5e77122bd039e4a17fbf /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
parent60927405f5612158ae0419798838be45a1637911 (diff)
[RISCV][VLOPT] Fix assertion failure across blocks (#124734)
Whilst adding a cross-block test, I encountered an assertion failure in the second pass where we check the instruction popped off the worklist is a candidate. The leaf instruction %c in this case will be added to the worklist when its VL is VLMAX, but during the first pass it will have its VL reduced to 1. Then in the second pass when its processed via the worklist, isCandidate will no longer be true due to its VL == 1. This fixes it by moving the VL == 1 check to tryReduceVL, keeping it alongside the other VL check for bailing out early as an optimisation.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions