Ensure native peephole opt uses a jump table.

In ORCA/Pascal's code generation, a case statement may use a jump table or a sequence of comparisons depending on whether it is considered sparse. This one was just a little too sparse to use a jump table, but changing it to use one makes it considerably faster. To force generation of a jump table, this commit adds several more explicit cases (even though they don't do anything).
This commit is contained in:
Stephen Heumann 2022-12-20 20:31:24 -06:00
parent cf9f19c93d
commit a87aeef25b
1 changed files with 2 additions and 0 deletions

View File

@ -2013,6 +2013,8 @@ var
Remove(ns+2);
end; {if}
{extra explicit cases to ensure this case statement uses a jump table}
m_rtl,m_rts,m_jml,m_jsl,m_mvn,m_plp,m_pld,m_txs,
otherwise: ;
end; {case}