[llvm-dev] Musings on the TableGen -emit-dag-isel backend

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 13 06:55:29 PST 2020


Would it make sense for TableGen to generate the outer OPC_SwitchOpcode offset table?


At 11/13/2020 07:53 AM, Nicolai Hähnle wrote:
>That said, if we are seriously thinking about the performance of the byte code, perhaps some of these opcodes should be reconsidered at a higher level anyway.
>
>For example: The overall bytecode always begins with an OPC_SwitchOpcode implemented as a linear list of cases, often hundreds of them (depending on the target). A binary search over a jump table would be *much* better for those.
>
>Cheers,
>Nicolai



More information about the llvm-dev mailing list