diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-02-17 07:07:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-02-17 07:07:21 +0000 |
commit | 33dd89087d59d4b2a5b837a40b85c8b93ade79c4 (patch) | |
tree | 46c3fee5afd38c559695a52bfe0dc5ae4e38b8b4 /lib/IR/AutoUpgrade.cpp | |
parent | aace5e8709421ea1c79da4d1679610f7e7889c5c (diff) |
[IR][X86] Rename an AutoUpgrade helper function to more accurately match what intrinsics it handles. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AutoUpgrade.cpp')
-rw-r--r-- | lib/IR/AutoUpgrade.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/IR/AutoUpgrade.cpp b/lib/IR/AutoUpgrade.cpp index 3aaedf7f4cd..e4181d16fd7 100644 --- a/lib/IR/AutoUpgrade.cpp +++ b/lib/IR/AutoUpgrade.cpp @@ -34,10 +34,10 @@ using namespace llvm; static void rename(GlobalValue *GV) { GV->setName(GV->getName() + ".old"); } -// Upgrade the declarations of the SSE4.1 functions whose arguments have +// Upgrade the declarations of the SSE4.1 ptest intrinsics whose arguments have // changed their type from v4f32 to v2i64. -static bool UpgradeSSE41Function(Function* F, Intrinsic::ID IID, - Function *&NewFn) { +static bool UpgradePTESTIntrinsic(Function* F, Intrinsic::ID IID, + Function *&NewFn) { // Check whether this is an old version of the function, which received // v4f32 arguments. Type *Arg0Type = F->getFunctionType()->getParamType(0); @@ -247,11 +247,11 @@ static bool UpgradeX86IntrinsicFunction(Function *F, StringRef Name, // SSE4.1 ptest functions may have an old signature. if (Name.startswith("sse41.ptest")) { // Added in 3.2 if (Name.substr(11) == "c") - return UpgradeSSE41Function(F, Intrinsic::x86_sse41_ptestc, NewFn); + return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestc, NewFn); if (Name.substr(11) == "z") - return UpgradeSSE41Function(F, Intrinsic::x86_sse41_ptestz, NewFn); + return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestz, NewFn); if (Name.substr(11) == "nzc") - return UpgradeSSE41Function(F, Intrinsic::x86_sse41_ptestnzc, NewFn); + return UpgradePTESTIntrinsic(F, Intrinsic::x86_sse41_ptestnzc, NewFn); } // Several blend and other instructions with masks used the wrong number of // bits. |