aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-18 01:04:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-18 01:04:25 +0000
commita5cecd0a130f7ebc4787f8f5b3e8959e41786673 (patch)
tree337570d6de8365ec327f5a612968da95f4e8490d
parenta4d6818dbe8055e633d3984868943fd8ea4ee048 (diff)
Remove int_x86_sse2_movl_dq. It's replaced with a string compare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45140 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/IntrinsicsX86.td2
-rw-r--r--lib/VMCore/AutoUpgrade.cpp8
2 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/IntrinsicsX86.td b/include/llvm/IntrinsicsX86.td
index 6ee14ac590..43fe167b2d 100644
--- a/include/llvm/IntrinsicsX86.td
+++ b/include/llvm/IntrinsicsX86.td
@@ -460,8 +460,6 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
def int_x86_sse2_packuswb_128 : GCCBuiltin<"__builtin_ia32_packuswb128">,
Intrinsic<[llvm_v8i16_ty, llvm_v8i16_ty,
llvm_v8i16_ty], [IntrNoMem]>;
- def int_x86_sse2_movl_dq : GCCBuiltin<"__builtin_ia32_movqv4si">,
- Intrinsic<[llvm_v4i32_ty, llvm_v4i32_ty], [IntrNoMem]>;
def int_x86_sse2_movmsk_pd : GCCBuiltin<"__builtin_ia32_movmskpd">,
Intrinsic<[llvm_i32_ty, llvm_v2f64_ty], [IntrNoMem]>;
def int_x86_sse2_pmovmskb_128 : GCCBuiltin<"__builtin_ia32_pmovmskb128">,
diff --git a/lib/VMCore/AutoUpgrade.cpp b/lib/VMCore/AutoUpgrade.cpp
index e2f61378b7..63ffdf664b 100644
--- a/lib/VMCore/AutoUpgrade.cpp
+++ b/lib/VMCore/AutoUpgrade.cpp
@@ -183,9 +183,7 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
assert(F && "CallInst has no function associated with it.");
if (!NewFn) {
- switch(F->getIntrinsicID()) {
- default: assert(0 && "Unknown function for CallInst upgrade.");
- case Intrinsic::x86_sse2_movl_dq: {
+ if (strcmp(F->getNameStart(), "llvm.x86.sse2.movl.dq") == 0) {
std::vector<Constant*> Idxs;
Constant *Zero = ConstantInt::get(Type::Int32Ty, 0);
Idxs.push_back(Zero);
@@ -211,8 +209,8 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
// Clean up the old call now that it has been completely upgraded.
CI->eraseFromParent();
- break;
- }
+ } else {
+ assert(0 && "Unknown function for CallInst upgrade.");
}
return;
}