This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add 'sahf' to getHostCPUFeatures so -march=native will pick it up correctly.
ClosedPublic

Authored by craig.topper on Feb 16 2018, 3:36 PM.

Details

Summary

We probably mostly get this right due to family/model/stepping mapping to CPU names. But we should detect it explicitly.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Feb 16 2018, 3:36 PM
dim accepted this revision.Feb 17 2018, 3:52 AM

LGTM.

This revision is now accepted and ready to land.Feb 17 2018, 3:52 AM
This revision was automatically updated to reflect the committed changes.