This is an archive of the discontinued LLVM Phabricator instance.

Remove the cortex-a9-mp CPU.
ClosedPublic

Authored by chatur01 on Oct 31 2014, 8:28 AM.

Details

Summary

This CPU definition is redundant. The Cortex-A9 is defined as supporting multiprocessing extensions. Remove its definition and update appropriate tests.

LLVM defines both a cortex-a9 CPU and a cortex-a9-mp CPU. The only difference between the two CPU definitions in ARM.td is that cortex-a9-mp contains the feature FeatureMP for multiprocessing extensions.

This is redundant since the Cortex-A9 is defined as having multiprocessing extensions in the TRMs.

The following thread from last year has a discussion about the possibility of removing this CPU,

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-November/033201.html

It appears as though the pseudo-architectures were removed, but the cortex-a9-mp CPU was not. Clang currently has no tests that depend on this CPU being in LLVM, so this patch will not break Clang tests, but I will prepare a separate patch for Clang to remove its references to this CPU name.

Diff Detail

Event Timeline

chatur01 retitled this revision from to Remove the cortex-a9-mp CPU..
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)
chatur01 set the repository for this revision to rL LLVM.
chatur01 added a subscriber: Unknown Object (MLST).

Hi Anton,

In D6057#5, @asl wrote:

LGTM

Thank you for the review! I thought I should also add Bob Wilson since the aforementioned mail thread ended in Bob saying "I am suggesting that we completely remove the armv7f architecture along with the cortex-a9-mp cpu. I need to do some checking first to make sure no one is using that." I want to make sure Bob's investigation didn't conclude with people are relying on this CPU name being present.

Hi Charlie,

Looks good to me too. I proposed this a while back, but I remember Bob/Jim/Evan saying that was needed for some old definition.

cheers,
-renato

Hi Bob,

As far as I know, it should be fine to remove cortex-a9-mp. See my reply from last January:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-January/034693.html http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-January/034693.html

I was still unsure from this email why the CPU definition was left. I wanted to double-check you didn't leave it because of some requirement on it I was unaware of.

Please may a reviewer accept this revision and I'll commit. :)

Thanks!
Charlie.

rengolin accepted this revision.Nov 3 2014, 8:40 AM
rengolin added a reviewer: rengolin.
This revision is now accepted and ready to land.Nov 3 2014, 8:40 AM
rengolin closed this revision.Mar 10 2015, 6:00 AM