|
@@ -207,7 +207,7 @@ void aarch64::getAArch64TargetFeatures(const Driver &D,
|
|
|
// TargetParser rewrite.
|
|
|
const auto ItRNoFullFP16 = std::find(Features.rbegin(), Features.rend(), "-fullfp16");
|
|
|
const auto ItRFP16FML = std::find(Features.rbegin(), Features.rend(), "+fp16fml");
|
|
|
- if (std::find(Features.begin(), Features.end(), "+v8.4a") != Features.end()) {
|
|
|
+ if (llvm::is_contained(Features, "+v8.4a")) {
|
|
|
const auto ItRFullFP16 = std::find(Features.rbegin(), Features.rend(), "+fullfp16");
|
|
|
if (ItRFullFP16 < ItRNoFullFP16 && ItRFullFP16 < ItRFP16FML) {
|
|
|
// Only entangled feature that can be to the right of this +fullfp16 is -fp16fml.
|
|
@@ -217,8 +217,7 @@ void aarch64::getAArch64TargetFeatures(const Driver &D,
|
|
|
}
|
|
|
else
|
|
|
goto fp16_fml_fallthrough;
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
fp16_fml_fallthrough:
|
|
|
// In both of these cases, putting the 'other' feature on the end of the vector will
|
|
|
// result in the same effect as placing it immediately after the current feature.
|