[llvm-commits] [llvm] r45140 - in /llvm/trunk: include/llvm/IntrinsicsX86.td lib/VMCore/AutoUpgrade.cpp
Evan Cheng
evan.cheng at apple.com
Mon Dec 17 17:04:26 PST 2007
Author: evancheng
Date: Mon Dec 17 19:04:25 2007
New Revision: 45140
URL: http://llvm.org/viewvc/llvm-project?rev=45140&view=rev
Log:
Remove int_x86_sse2_movl_dq. It's replaced with a string compare.
Modified:
llvm/trunk/include/llvm/IntrinsicsX86.td
llvm/trunk/lib/VMCore/AutoUpgrade.cpp
Modified: llvm/trunk/include/llvm/IntrinsicsX86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IntrinsicsX86.td?rev=45140&r1=45139&r2=45140&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IntrinsicsX86.td (original)
+++ llvm/trunk/include/llvm/IntrinsicsX86.td Mon Dec 17 19:04:25 2007
@@ -460,8 +460,6 @@
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">,
Modified: llvm/trunk/lib/VMCore/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AutoUpgrade.cpp?rev=45140&r1=45139&r2=45140&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AutoUpgrade.cpp (original)
+++ llvm/trunk/lib/VMCore/AutoUpgrade.cpp Mon Dec 17 19:04:25 2007
@@ -183,9 +183,7 @@
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 @@
// Clean up the old call now that it has been completely upgraded.
CI->eraseFromParent();
- break;
- }
+ } else {
+ assert(0 && "Unknown function for CallInst upgrade.");
}
return;
}
More information about the llvm-commits
mailing list