mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
caee968481
commit
9f86e8054b
@ -1179,74 +1179,6 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
|
||||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
case Intrinsic::x86_mmx_cvtsi32_si64: {
|
||||
// The return type needs to be changed.
|
||||
Value *Operands[1];
|
||||
Operands[0] = CI->getArgOperand(0);
|
||||
ConstructNewCallInst(NewFn, CI, Operands, 1);
|
||||
break;
|
||||
}
|
||||
case Intrinsic::x86_mmx_cvtsi64_si32: {
|
||||
Value *Operands[1];
|
||||
|
||||
// Cast the operand to the X86 MMX type.
|
||||
Operands[0] = new BitCastInst(CI->getArgOperand(0),
|
||||
NewFn->getFunctionType()->getParamType(0),
|
||||
"upgraded.", CI);
|
||||
|
||||
ConstructNewCallInst(NewFn, CI, Operands, 1);
|
||||
break;
|
||||
}
|
||||
case Intrinsic::x86_mmx_vec_init_b:
|
||||
case Intrinsic::x86_mmx_vec_init_w:
|
||||
case Intrinsic::x86_mmx_vec_init_d: {
|
||||
// The return type needs to be changed.
|
||||
Value *Operands[8];
|
||||
unsigned NumOps = 0;
|
||||
|
||||
switch (NewFn->getIntrinsicID()) {
|
||||
default: break;
|
||||
case Intrinsic::x86_mmx_vec_init_b: NumOps = 8; break;
|
||||
case Intrinsic::x86_mmx_vec_init_w: NumOps = 4; break;
|
||||
case Intrinsic::x86_mmx_vec_init_d: NumOps = 2; break;
|
||||
}
|
||||
|
||||
switch (NewFn->getIntrinsicID()) {
|
||||
default: break;
|
||||
case Intrinsic::x86_mmx_vec_init_b:
|
||||
Operands[7] = CI->getArgOperand(7);
|
||||
Operands[6] = CI->getArgOperand(6);
|
||||
Operands[5] = CI->getArgOperand(5);
|
||||
Operands[4] = CI->getArgOperand(4);
|
||||
// FALLTHRU
|
||||
case Intrinsic::x86_mmx_vec_init_w:
|
||||
Operands[3] = CI->getArgOperand(3);
|
||||
Operands[2] = CI->getArgOperand(2);
|
||||
// FALLTHRU
|
||||
case Intrinsic::x86_mmx_vec_init_d:
|
||||
Operands[1] = CI->getArgOperand(1);
|
||||
Operands[0] = CI->getArgOperand(0);
|
||||
break;
|
||||
}
|
||||
|
||||
ConstructNewCallInst(NewFn, CI, Operands, NumOps);
|
||||
break;
|
||||
}
|
||||
case Intrinsic::x86_mmx_vec_ext_d: {
|
||||
Value *Operands[2];
|
||||
|
||||
// Cast the operand to the X86 MMX type.
|
||||
Operands[0] = new BitCastInst(CI->getArgOperand(0),
|
||||
NewFn->getFunctionType()->getParamType(0),
|
||||
"upgraded.", CI);
|
||||
Operands[1] = CI->getArgOperand(1);
|
||||
|
||||
ConstructNewCallInst(NewFn, CI, Operands, 2);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
case Intrinsic::ctlz:
|
||||
case Intrinsic::ctpop:
|
||||
case Intrinsic::cttz: {
|
||||
|
Loading…
Reference in New Issue
Block a user