This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Prevent DSP and SIM32 being set for v6m
ClosedPublic

Authored by samparker on Sep 28 2018, 2:10 AM.

Details

Summary

My previous change (rL340911) set the two features for architectures >= 6, which wrongly includes v6m. Now set to >= 6 and not Cortex-M.

Diff Detail

Repository
rC Clang

Event Timeline

samparker created this revision.Sep 28 2018, 2:10 AM
dmgreen accepted this revision.Sep 28 2018, 2:36 AM

LGTM, Thanks

lib/Basic/Targets/ARM.cpp
666

Maybe always put the CPUProfile first? so
(CPUProfile != "M" && ArchVersion >= 6) || (CPUProfile == "M" && DSP)
Up to you.

This revision is now accepted and ready to land.Sep 28 2018, 2:36 AM
This revision was automatically updated to reflect the committed changes.