summaryrefslogtreecommitdiff
path: root/disassembler
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-08-18 11:47:43 +0100
committer Santiago Aboy Solanes <solanes@google.com> 2023-08-18 13:28:48 +0000
commit5655ec289c3ffd389a02108e2e601b16a9dedbd4 (patch)
tree25606c445ba529b56a448ef55b67387e341c61f3 /disassembler
parent4617cc65933921f40b8dd09ad630850a984486c7 (diff)
An instruction cannot be found before itself
If we call FoundBefore with the same instruction in both parameters, we will return true instead of false. By swapping the two ifs inside the for, we can achieve what we want. FoundBefore is used to sort in code sinking, and otherwise we would be not be covering irreflexivity so we wouldn't be having a strict weak ordering. Bug: 296538046 Test: art/test/testrunner/testrunner.py --host --64 -b --optimizing Change-Id: I0abab631842ed5e1442437608aaa16c106fe37a8
Diffstat (limited to 'disassembler')
0 files changed, 0 insertions, 0 deletions