[SLPVectorizer] Vectorize libcalls of sqrt

We didn't realize that we could transform the libcall into a vectorized
intrinsic.

llvm-svn: 265493
This commit is contained in:
David Majnemer
2016-04-06 00:14:59 +00:00
parent 8deb5eb37d
commit 25d03dbcde
3 changed files with 28 additions and 25 deletions

View File

@@ -220,6 +220,10 @@ Intrinsic::ID llvm::getIntrinsicIDForCall(CallInst *CI,
case LibFunc::powf:
case LibFunc::powl:
return checkBinaryFloatSignature(*CI, Intrinsic::pow);
case LibFunc::sqrt:
case LibFunc::sqrtf:
case LibFunc::sqrtl:
return checkUnaryFloatSignature(*CI, Intrinsic::sqrt);
}
return Intrinsic::not_intrinsic;