@@ -999,16 +999,14 @@ static RTLIB::Libcall fremToLibcall(Type *Ty) {
999
999
/* Return true if, according to \p LibInfo, the target either directly
1000
1000
supports the frem instruction for the \p Ty, has a custom lowering,
1001
1001
or uses a libcall. */
1002
- static bool targetSupportsFrem (const TargetLowering &TLI,
1003
- const TargetLibraryInfo &LibInfo, Type *Ty) {
1002
+ static bool targetSupportsFrem (const TargetLowering &TLI, Type *Ty) {
1004
1003
if (!TLI.isOperationExpand (ISD::FREM, EVT::getEVT (Ty)))
1005
1004
return true ;
1006
1005
1007
1006
return TLI.getLibcallName (fremToLibcall (Ty->getScalarType ()));
1008
1007
}
1009
1008
1010
- static bool runImpl (Function &F, const TargetLowering &TLI,
1011
- const TargetLibraryInfo &LibInfo) {
1009
+ static bool runImpl (Function &F, const TargetLowering &TLI) {
1012
1010
SmallVector<Instruction *, 4 > Replace;
1013
1011
SmallVector<Instruction *, 4 > ReplaceVector;
1014
1012
bool Modified = false ;
@@ -1024,7 +1022,7 @@ static bool runImpl(Function &F, const TargetLowering &TLI,
1024
1022
for (auto &I : instructions (F)) {
1025
1023
switch (I.getOpcode ()) {
1026
1024
case Instruction::FRem:
1027
- if (!targetSupportsFrem (TLI, LibInfo, I.getType ())) {
1025
+ if (!targetSupportsFrem (TLI, I.getType ())) {
1028
1026
Replace.push_back (&I);
1029
1027
Modified = true ;
1030
1028
}
0 commit comments