return true;
case Instruction::FPTrunc:
case Instruction::FPExt:
+ case Instruction::FNeg:
return isKnownNeverNaN(Inst->getOperand(0), TLI, Depth + 1);
default:
break;
define i1 @nnan_unary_fneg() {
; CHECK-LABEL: @nnan_unary_fneg(
; CHECK-NEXT: [[NNAN:%.*]] = call nnan double @func()
-; CHECK-NEXT: [[OP:%.*]] = fneg double [[NNAN]]
-; CHECK-NEXT: [[TMP:%.*]] = fcmp ord double [[OP]], [[OP]]
-; CHECK-NEXT: ret i1 [[TMP]]
+; CHECK-NEXT: ret i1 true
;
%nnan = call nnan double @func()
%op = fneg double %nnan