mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
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:
parent
cf9f19c93d
commit
a87aeef25b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user