Skip to content

Commit 96d00a3

Browse files
committed
Fixup after merge
1 parent 1233e2b commit 96d00a3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/CodeGen/ExpandFp.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -999,16 +999,14 @@ static RTLIB::Libcall fremToLibcall(Type *Ty) {
999999
/* Return true if, according to \p LibInfo, the target either directly
10001000
supports the frem instruction for the \p Ty, has a custom lowering,
10011001
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) {
10041003
if (!TLI.isOperationExpand(ISD::FREM, EVT::getEVT(Ty)))
10051004
return true;
10061005

10071006
return TLI.getLibcallName(fremToLibcall(Ty->getScalarType()));
10081007
}
10091008

1010-
static bool runImpl(Function &F, const TargetLowering &TLI,
1011-
const TargetLibraryInfo &LibInfo) {
1009+
static bool runImpl(Function &F, const TargetLowering &TLI) {
10121010
SmallVector<Instruction *, 4> Replace;
10131011
SmallVector<Instruction *, 4> ReplaceVector;
10141012
bool Modified = false;
@@ -1024,7 +1022,7 @@ static bool runImpl(Function &F, const TargetLowering &TLI,
10241022
for (auto &I : instructions(F)) {
10251023
switch (I.getOpcode()) {
10261024
case Instruction::FRem:
1027-
if (!targetSupportsFrem(TLI, LibInfo, I.getType())) {
1025+
if (!targetSupportsFrem(TLI, I.getType())) {
10281026
Replace.push_back(&I);
10291027
Modified = true;
10301028
}

0 commit comments

Comments
 (0)