Skip to content

Commit

Permalink
Revert "Map llvm.isnan on OpIsNan (KhronosGroup#1179)"
Browse files Browse the repository at this point in the history
The intrinsic was reverted in 3f1f08f0ed6

This reverts commit 81ebabd.
  • Loading branch information
MrSidims committed Sep 3, 2021
1 parent 869f703 commit 6cef1d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,6 @@ bool LLVMToSPIRVBase::isKnownIntrinsic(Intrinsic::ID Id) {
case Intrinsic::dbg_label:
case Intrinsic::trap:
case Intrinsic::arithmetic_fence:
case Intrinsic::isnan:
return true;
default:
// Unknown intrinsics' declarations should always be translated
Expand Down Expand Up @@ -3195,11 +3194,6 @@ SPIRVValue *LLVMToSPIRVBase::transIntrinsicInst(IntrinsicInst *II,
}
return Op;
}
case Intrinsic::isnan: {
SPIRVType *Ty = transType(II->getType());
SPIRVValue *Op = transValue(II->getArgOperand(0), BB);
return BM->addUnaryInst(OpIsNan, Ty, Op, BB);
}
default:
if (BM->isUnknownIntrinsicAllowed(II))
return BM->addCallInst(
Expand Down
35 changes: 0 additions & 35 deletions test/transcoding/isnan.ll

This file was deleted.

0 comments on commit 6cef1d1

Please sign in to comment.