mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 03:46:27 +00:00
[IR][X86] Simplify some AutoUpgrade code slightly. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295426 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33dd89087d
commit
ff64e4651d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user