Skip to content

[llvm-exegesis] Ignore unsupported instructions via UnsupportedFeatures #36950

@RKSimon

Description

@RKSimon
Bugzilla Link 37602
Version trunk
OS Windows NT
Depends On llvm/llvm-bugzilla-archive#37601
Blocks #31672
CC @adibiagio,@atrick,@legrosbuffle,@topperc,@gchatelet,@rotateright

Extended Description

Using the script detailed in http://llvm.org/docs/CommandGuide/llvm-exegesis.html is very slow as we end up testing instructions that we know aren't supported on the CPU, but we still have to wait for the JIT to fail to move on.

It would be better if:

(a) llvm-exegesis made use of the scheduler model's UnsupportedFeatures field to test if the instruction is supported and if not, early out. In particular this would help considerably with older CPUs that don't support all the AVX512 instructions......

(b) the models made use of the UnsupportedFeatures field to ignore ISAs that it doesn't support see [Bug #​37601] - for SandyBridge/Haswell where we need to "support" additional ISAs we could at least hack the field locally to match the test CPU.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions