Skip to content

Commit 4492973

Browse files
committed
[GlobalISel] Remove NoNaNsFPMath uses
1 parent dd44e63 commit 4492973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/GlobalISel/Utils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,7 @@ bool llvm::isKnownNeverNaN(Register Val, const MachineRegisterInfo &MRI,
818818
if (!DefMI)
819819
return false;
820820

821-
const TargetMachine& TM = DefMI->getMF()->getTarget();
822-
if (DefMI->getFlag(MachineInstr::FmNoNans) || TM.Options.NoNaNsFPMath)
821+
if (DefMI->getFlag(MachineInstr::FmNoNans))
823822
return true;
824823

825824
// If the value is a constant, we can obviously see if it is a NaN or not.

0 commit comments

Comments
 (0)