diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-11-05 04:00:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-11-05 04:00:31 +0000 |
commit | a2f12e0a7511ef0c1979a5b9258a1a0101ba4eb0 (patch) | |
tree | ad6785f41d26abf1193f9d4ebbfe35c3110a5fe1 /llvm/lib/IR/AutoUpgrade.cpp | |
parent | 22886a2853256f607eda9053c464ce24b6c2e749 (diff) | |
download | bcm5719-llvm-a2f12e0a7511ef0c1979a5b9258a1a0101ba4eb0.tar.gz bcm5719-llvm-a2f12e0a7511ef0c1979a5b9258a1a0101ba4eb0.zip |
[X86] Remove broken support for autoupgrading llvm.x86.fma4.* intrinsics to llvm.x86.fma.*.
It currently fires an assert if you even try. Looking back, I don't think it ever worked because it only changed the name of the function object, but not the intrinsic ID stored in it. Given that, I think it can be removed since no one has noticed or complained in the past 4 years.
llvm-svn: 286031
Diffstat (limited to 'llvm/lib/IR/AutoUpgrade.cpp')
-rw-r--r-- | llvm/lib/IR/AutoUpgrade.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp index a5447cb4d4f..e6b80c58c0b 100644 --- a/llvm/lib/IR/AutoUpgrade.cpp +++ b/llvm/lib/IR/AutoUpgrade.cpp @@ -403,12 +403,6 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) { NewFn = Intrinsic::getDeclaration(F->getParent(), ShiftID); return true; } - // Fix the FMA4 intrinsics to remove the 4 - if (IsX86 && Name.startswith("fma4.")) { - rename(F); - NewFn = F; - return true; - } // Upgrade any XOP PERMIL2 index operand still using a float/double vector. if (IsX86 && Name.startswith("xop.vpermil2")) { auto Params = F->getFunctionType()->params(); |