================
@@ -1371,7 +1371,9 @@ llvm::APInt
X86TargetInfo::getFMVPriority(ArrayRef<StringRef> Features) const {
unsigned Priority = 0;
for (StringRef Feature : Features)
- if (!Feature.empty())
+ if (!Feature.empty() &&
+ (llvm::X86::parseArchX86(Feature) != llvm::X86::CK_None ||
----------------
phoebewang wrote:
This is checked in line 1363. Maybe move `validateCpuSupports(Feature)` check
into getPriority?
https://github.com/llvm/llvm-project/pull/172844
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits