[PowerPC] Fix powerpcspe subtarget enablement in llvm backend
authorJustin Hibbits <chmeeedalf@gmail.com>
Tue, 14 Jan 2020 02:06:29 +0000 (20:06 -0600)
committerJustin Hibbits <chmeeedalf@gmail.com>
Wed, 15 Jan 2020 04:07:03 +0000 (22:07 -0600)
commit36eedfcb3cea6d4fb0c5998e63596502eb7d32f0
tree2e74d4c5f20cc659efd9292fc047ed7196723993
parentd18fbfc09720009c0dc6a1ddf315402ee0a7751d
[PowerPC] Fix powerpcspe subtarget enablement in llvm backend

Summary:
As currently written, -target powerpcspe will enable SPE regardless of
disabling the feature later on in the command line.  Instead, change
this to just set a default CPU to 'e500' instead of a generic CPU.

As part of this, add FeatureSPE to the e500 definition.

Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D72673
llvm/lib/Target/PowerPC/PPC.td
llvm/lib/Target/PowerPC/PPCSubtarget.cpp