1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[IR][X86] Simplify some AutoUpgrade code slightly. NFC

llvm-svn: 295426
This commit is contained in:
Craig Topper 2017-02-17 07:07:24 +00:00
parent a4a667fd82
commit 53ec7cbf95

View File

@ -289,9 +289,8 @@ static bool UpgradeX86IntrinsicFunction(Function *F, StringRef Name,
}
// Upgrade any XOP PERMIL2 index operand still using a float/double vector.
if (Name.startswith("xop.vpermil2")) { // Added in 3.9
auto Params = F->getFunctionType()->params();
auto Idx = Params[2];
if (Idx->getScalarType()->isFloatingPointTy()) {
auto Idx = F->getFunctionType()->getParamType(2);
if (Idx->isFPOrFPVectorTy()) {
rename(F);
unsigned IdxSize = Idx->getPrimitiveSizeInBits();
unsigned EltSize = Idx->getScalarSizeInBits();