Skip to content

Don't use "generic" as the target cpu #20777

Closed
@dotdash

Description

@dotdash

By default, we use the "generic" target CPU, unfortunately on x86_64, this disables various features because "generic" is more like "generic x86". This disable things like some SSE usage and multibyte nops. On x86_64 we should use x86-64 as the minimum target cpu, not sure about other archs.

To present some arbitrary numbers:

# target cpu "generic"
$ objdump -S libsyntax-4e7c5e5c.so | grep xmm -c
25148

# target cpu "x86-64"
$ objdump -S libsyntax-4e7c5e5c.so|grep xmm  -c
83740

cc @cmr

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions