diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-02-18 06:46:17 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-02-18 06:46:17 +0000 |
| commit | 4cf59aaf088b4e559f06bbba9361e01839ff5c86 (patch) | |
| tree | 24c2b0eeb582272d5fbcc8dab60c4b84b51f7b40 /llvm/include | |
| parent | 6798a65a2466e5c05e25ee481c31536e03abd516 (diff) | |
| download | bcm5719-llvm-4cf59aaf088b4e559f06bbba9361e01839ff5c86.tar.gz bcm5719-llvm-4cf59aaf088b4e559f06bbba9361e01839ff5c86.zip | |
[MC] Make SubtargetFeatureKV only store one FeatureBitset and use an 'unsigned' to hold the value.
This class is used for two difference tablegen generated tables. For one of the tables the Value FeatureBitset only has one bit set. For the other usage the Implies field was unused.
This patch changes the Value field to just be an unsigned. For the usage that put a real vector in bitset, we now use the previously unused Implies field and leave the Value field unused instead.
This is good for a 16K reduction in the size of llc on my local build with all targets enabled.
llvm-svn: 354243
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/SubtargetFeature.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/SubtargetFeature.h b/llvm/include/llvm/MC/SubtargetFeature.h index 5f49d3894ae..9c0a3f6e45f 100644 --- a/llvm/include/llvm/MC/SubtargetFeature.h +++ b/llvm/include/llvm/MC/SubtargetFeature.h @@ -52,7 +52,7 @@ public: struct SubtargetFeatureKV { const char *Key; ///< K-V key string const char *Desc; ///< Help descriptor - FeatureBitset Value; ///< K-V integer value + unsigned Value; ///< K-V integer value FeatureBitset Implies; ///< K-V bit mask /// Compare routine for std::lower_bound |

