[llvm] r307332 - [InstCombine] Remove unused arguments from some helper functions. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 6 16:18:42 PDT 2017
Author: ctopper
Date: Thu Jul 6 16:18:42 2017
New Revision: 307332
URL: http://llvm.org/viewvc/llvm-project?rev=307332&view=rev
Log:
[InstCombine] Remove unused arguments from some helper functions. NFC
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=307332&r1=307331&r2=307332&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Thu Jul 6 16:18:42 2017
@@ -600,8 +600,7 @@ static Value *simplifyX86muldq(const Int
return Builder.CreateMul(LHS, RHS);
}
-static Value *simplifyX86pack(IntrinsicInst &II, InstCombiner &IC,
- InstCombiner::BuilderTy &Builder, bool IsSigned) {
+static Value *simplifyX86pack(IntrinsicInst &II, bool IsSigned) {
Value *Arg0 = II.getArgOperand(0);
Value *Arg1 = II.getArgOperand(1);
Type *ResTy = II.getType();
@@ -676,8 +675,7 @@ static Value *simplifyX86pack(IntrinsicI
return ConstantVector::get(Vals);
}
-static Value *simplifyX86movmsk(const IntrinsicInst &II,
- InstCombiner::BuilderTy &Builder) {
+static Value *simplifyX86movmsk(const IntrinsicInst &II) {
Value *Arg = II.getArgOperand(0);
Type *ResTy = II.getType();
Type *ArgTy = Arg->getType();
@@ -2336,7 +2334,7 @@ Instruction *InstCombiner::visitCallInst
case Intrinsic::x86_avx_movmsk_pd_256:
case Intrinsic::x86_avx_movmsk_ps_256:
case Intrinsic::x86_avx2_pmovmskb: {
- if (Value *V = simplifyX86movmsk(*II, *Builder))
+ if (Value *V = simplifyX86movmsk(*II))
return replaceInstUsesWith(*II, V);
break;
}
@@ -2705,7 +2703,7 @@ Instruction *InstCombiner::visitCallInst
case Intrinsic::x86_avx2_packsswb:
case Intrinsic::x86_avx512_packssdw_512:
case Intrinsic::x86_avx512_packsswb_512:
- if (Value *V = simplifyX86pack(*II, *this, *Builder, true))
+ if (Value *V = simplifyX86pack(*II, true))
return replaceInstUsesWith(*II, V);
break;
@@ -2715,7 +2713,7 @@ Instruction *InstCombiner::visitCallInst
case Intrinsic::x86_avx2_packuswb:
case Intrinsic::x86_avx512_packusdw_512:
case Intrinsic::x86_avx512_packuswb_512:
- if (Value *V = simplifyX86pack(*II, *this, *Builder, false))
+ if (Value *V = simplifyX86pack(*II, false))
return replaceInstUsesWith(*II, V);
break;
More information about the llvm-commits
mailing list