Skip to content

Re-enable ALU32 for sBPFv1 #104

Open
@ripatel-fd

Description

@ripatel-fd

The sBPFv1 instruction set features a 32-bit ALU instruction class.
The SBF LLVM target currently doesn't make use of it (the ALU32 feature is not enabled for the sBPFv1 target).

Allowing the compiler to generate 32-bit ALU instructions has potential performance benefits:

  • The compiled code currently has to emulate wraparound behavior when using 32-bit integer types.
  • On x86_64, instructions with 32-bit operands are typically shorter than their 64-bit counterparts, which could lead to improved instruction fetch performance when using a JIT compiler.

There are a few problems:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions