forked from OSchip/llvm-project
[X86][IR] In AutoUpgrade, check explicitly for xop.vpcmov and xop.vpcmov.256 instead of anything starting with xop.vpcmov
There were some older intrinsics that only existed for less than a month in 2012 that still exist in some out of tree test files that start with this string, but aren't able to be handled by the current upgrade code and fire an assert. Now we'll go back to treating them as not intrinsics at all and just passing them through to output. Fixes PR32041, sort of. llvm-svn: 295930
This commit is contained in:
parent
277155b054
commit
185ced8b2b
|
@ -230,7 +230,8 @@ static bool ShouldUpgradeX86Intrinsic(Function *F, StringRef Name) {
|
|||
Name.startswith("avx2.pblendd.") || // Added in 3.7
|
||||
Name.startswith("avx.vbroadcastf128") || // Added in 4.0
|
||||
Name == "avx2.vbroadcasti128" || // Added in 3.7
|
||||
Name.startswith("xop.vpcmov") || // Added in 3.8
|
||||
Name == "xop.vpcmov" || // Added in 3.8
|
||||
Name == "xop.vpcmov.256" || // Added in 4.1
|
||||
Name.startswith("avx512.mask.move.s") || // Added in 4.0
|
||||
(Name.startswith("xop.vpcom") && // Added in 3.2
|
||||
F->arg_size() == 2))
|
||||
|
|
Loading…
Reference in New Issue