Skip to content

Commit fe4b19f

Browse files
committed
Don't clear NoFPExcept flag after all
1 parent c1f2352 commit fe4b19f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

llvm/lib/Target/SystemZ/SystemZElimCompare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ bool SystemZElimCompare::optimizeCompareZero(
555555

556556
// Also do a forward search to handle cases where an instruction after the
557557
// compare can be converted, like
558-
// LTGR %r0d, %r0d; %r1d = LGR %r0d => LTGR %r1d, %r0d XXXX
558+
// CGHI %r0d, 0; %r1d = LGR %r0d => LTGR %r1d, %r0d
559559
auto MIRange = llvm::make_range(
560560
std::next(MachineBasicBlock::iterator(&Compare)), MBB.end());
561561
for (MachineInstr &MI : llvm::make_early_inc_range(MIRange)) {

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9188,9 +9188,6 @@ MachineBasicBlock *SystemZTargetLowering::emitLoadAndTestCmp0(
91889188
DebugLoc DL = MI.getDebugLoc();
91899189
Register SrcReg = MI.getOperand(0).getReg();
91909190

9191-
// This instruction will raise an exception if the input is a SNaN.
9192-
// MI.clearFlag(MachineInstr::MIFlag::NoFPExcept);
9193-
91949191
// Create new virtual register of the same class as source.
91959192
const TargetRegisterClass *RC = MRI->getRegClass(SrcReg);
91969193
Register DstReg = MRI->createVirtualRegister(RC);

0 commit comments

Comments
 (0)