forked from OSchip/llvm-project
[VectorCombine] remove unused parameters; NFC
This commit is contained in:
parent
a10fc165f5
commit
039ff29ef6
|
@ -159,7 +159,7 @@ static bool isExtractExtractCheap(Instruction *Ext0, Instruction *Ext1,
|
|||
/// compares followed by extract.
|
||||
/// cmp (ext0 V0, C), (ext1 V1, C)
|
||||
static void foldExtExtCmp(Instruction *Ext0, Instruction *Ext1,
|
||||
Instruction &I, const TargetTransformInfo &TTI) {
|
||||
Instruction &I) {
|
||||
assert(isa<CmpInst>(&I) && "Expected a compare");
|
||||
|
||||
// cmp Pred (extelt V0, C), (extelt V1, C) --> extelt (cmp Pred V0, V1), C
|
||||
|
@ -178,7 +178,7 @@ static void foldExtExtCmp(Instruction *Ext0, Instruction *Ext1,
|
|||
/// binops followed by extract.
|
||||
/// bo (ext0 V0, C), (ext1 V1, C)
|
||||
static void foldExtExtBinop(Instruction *Ext0, Instruction *Ext1,
|
||||
Instruction &I, const TargetTransformInfo &TTI) {
|
||||
Instruction &I) {
|
||||
assert(isa<BinaryOperator>(&I) && "Expected a binary operator");
|
||||
|
||||
// bo (extelt V0, C), (extelt V1, C) --> extelt (bo V0, V1), C
|
||||
|
@ -254,9 +254,9 @@ static bool foldExtractExtract(Instruction &I, const TargetTransformInfo &TTI) {
|
|||
}
|
||||
|
||||
if (Pred != CmpInst::BAD_ICMP_PREDICATE)
|
||||
foldExtExtCmp(Ext0, Ext1, I, TTI);
|
||||
foldExtExtCmp(Ext0, Ext1, I);
|
||||
else
|
||||
foldExtExtBinop(Ext0, Ext1, I, TTI);
|
||||
foldExtExtBinop(Ext0, Ext1, I);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue