diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-02-26 14:30:11 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-02-26 14:30:11 +0000 |
commit | 296b82f8b17284655784a2f814609b082a3af4e0 (patch) | |
tree | 34a79b41cba4fd8539474c39a35a0118f18b8177 | |
parent | 9e2d3cd131efebc655d382b64c0bd729d0459de9 (diff) |
Revert "Add llvm.ceil, llvm.trunc, llvm.rint, llvm.nearbyint intrinsics."
This reverts commit 4f0a34e93e0c78320545f7a31fd35c7efc597d1a.
This patch breaks ABI compatibility with the official LLVM 3.2 release.
-rw-r--r-- | include/llvm/Intrinsics.td | 4 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 20 |
2 files changed, 0 insertions, 24 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index bf1c1a083a8..059bd804aa1 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -271,10 +271,6 @@ let Properties = [IntrReadMem] in { def int_exp2 : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; def int_fabs : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; def int_floor : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; - def int_ceil : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; - def int_trunc : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; - def int_rint : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; - def int_nearbyint : Intrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]>; } let Properties = [IntrNoMem] in { diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index c5e2eabbd60..3fbf7c2fe66 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -4996,26 +4996,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { getValue(I.getArgOperand(0)).getValueType(), getValue(I.getArgOperand(0)))); return 0; - case Intrinsic::ceil: - setValue(&I, DAG.getNode(ISD::FCEIL, dl, - getValue(I.getArgOperand(0)).getValueType(), - getValue(I.getArgOperand(0)))); - return 0; - case Intrinsic::trunc: - setValue(&I, DAG.getNode(ISD::FTRUNC, dl, - getValue(I.getArgOperand(0)).getValueType(), - getValue(I.getArgOperand(0)))); - return 0; - case Intrinsic::rint: - setValue(&I, DAG.getNode(ISD::FRINT, dl, - getValue(I.getArgOperand(0)).getValueType(), - getValue(I.getArgOperand(0)))); - return 0; - case Intrinsic::nearbyint: - setValue(&I, DAG.getNode(ISD::FNEARBYINT, dl, - getValue(I.getArgOperand(0)).getValueType(), - getValue(I.getArgOperand(0)))); - return 0; case Intrinsic::fma: setValue(&I, DAG.getNode(ISD::FMA, dl, getValue(I.getArgOperand(0)).getValueType(), |