- break;
- }
- case Intrinsic::sqrt_f80: {
- static Constant *sqrtF80Cache = 0;
- ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
- Type::X86_FP80Ty, sqrtF80Cache);
- break;
- }
- case Intrinsic::sqrt_f128: {
- static Constant *sqrtF128Cache = 0;
- ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
- Type::FP128Ty, sqrtF128Cache);
- break;
- }
- case Intrinsic::sqrt_ppcf128: {
- static Constant *sqrtppcF128Cache = 0;
- ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
- Type::PPC_FP128Ty, sqrtppcF128Cache);
+ break;
+ case Type::X86_FP80TyID:
+ case Type::FP128TyID:
+ case Type::PPC_FP128TyID:
+ ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
+ CI->getOperand(1)->getType(), sqrtLDCache);
+ break;
+ }