diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2015-12-11 23:11:52 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2015-12-11 23:11:52 +0000 |
| commit | cd8664c3c20c721428605587367a6d23fd1f15bf (patch) | |
| tree | 4ac0cf0e2126c1dfa99b4057216d892039f919c4 /llvm/include | |
| parent | 515f8df3f16fe74a5a1032f81a23556bede27537 (diff) | |
| download | bcm5719-llvm-cd8664c3c20c721428605587367a6d23fd1f15bf.tar.gz bcm5719-llvm-cd8664c3c20c721428605587367a6d23fd1f15bf.zip | |
Revert r248483, r242546, r242545, and r242409 - absdiff intrinsics
After much discussion, ending here:
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151123/315620.html
it has been decided that, instead of having the vectorizer directly generate
special absdiff and horizontal-add intrinsics, we'll recognize the relevant
reduction patterns during CodeGen. Accordingly, these intrinsics are not needed
(the operations they represent can be pattern matched, as is already done in
some backends). Thus, we're backing these out in favor of the current
development work.
r248483 - Codegen: Fix llvm.*absdiff semantic.
r242546 - [ARM] Use [SU]ABSDIFF nodes instead of intrinsics for VABD/VABA
r242545 - [AArch64] Use [SU]ABSDIFF nodes instead of intrinsics for ABD/ABA
r242409 - [Codegen] Add intrinsics 'absdiff' and corresponding SDNodes for absolute difference operation
llvm-svn: 255387
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/ISDOpcodes.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/IR/Intrinsics.td | 6 | ||||
| -rw-r--r-- | llvm/include/llvm/Target/TargetSelectionDAG.td | 2 |
3 files changed, 0 insertions, 12 deletions
diff --git a/llvm/include/llvm/CodeGen/ISDOpcodes.h b/llvm/include/llvm/CodeGen/ISDOpcodes.h index 4be993a9fbb..158ff3cd36a 100644 --- a/llvm/include/llvm/CodeGen/ISDOpcodes.h +++ b/llvm/include/llvm/CodeGen/ISDOpcodes.h @@ -338,10 +338,6 @@ namespace ISD { /// Byte Swap and Counting operators. BSWAP, CTTZ, CTLZ, CTPOP, BITREVERSE, - /// [SU]ABSDIFF - Signed/Unsigned absolute difference of two input integer - /// vector. These nodes are generated from llvm.*absdiff* intrinsics. - SABSDIFF, UABSDIFF, - /// Bit counting operators with an undefined result for zero inputs. CTTZ_ZERO_UNDEF, CTLZ_ZERO_UNDEF, diff --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td index e838fb332de..2ede1ee11f2 100644 --- a/llvm/include/llvm/IR/Intrinsics.td +++ b/llvm/include/llvm/IR/Intrinsics.td @@ -631,12 +631,6 @@ def int_convertuu : Intrinsic<[llvm_anyint_ty], def int_clear_cache : Intrinsic<[], [llvm_ptr_ty, llvm_ptr_ty], [], "llvm.clear_cache">; -// Calculate the Absolute Differences of the two input vectors. -def int_sabsdiff : Intrinsic<[llvm_anyvector_ty], - [ LLVMMatchType<0>, LLVMMatchType<0> ], [IntrNoMem]>; -def int_uabsdiff : Intrinsic<[llvm_anyvector_ty], - [ LLVMMatchType<0>, LLVMMatchType<0> ], [IntrNoMem]>; - //===-------------------------- Masked Intrinsics -------------------------===// // def int_masked_store : Intrinsic<[], [llvm_anyvector_ty, LLVMPointerTo<0>, diff --git a/llvm/include/llvm/Target/TargetSelectionDAG.td b/llvm/include/llvm/Target/TargetSelectionDAG.td index 6ca253a1d1e..56547365840 100644 --- a/llvm/include/llvm/Target/TargetSelectionDAG.td +++ b/llvm/include/llvm/Target/TargetSelectionDAG.td @@ -396,8 +396,6 @@ def smax : SDNode<"ISD::SMAX" , SDTIntBinOp>; def umin : SDNode<"ISD::UMIN" , SDTIntBinOp>; def umax : SDNode<"ISD::UMAX" , SDTIntBinOp>; -def sabsdiff : SDNode<"ISD::SABSDIFF" , SDTIntBinOp>; -def uabsdiff : SDNode<"ISD::UABSDIFF" , SDTIntBinOp>; def sext_inreg : SDNode<"ISD::SIGN_EXTEND_INREG", SDTExtInreg>; def bitreverse : SDNode<"ISD::BITREVERSE" , SDTIntUnaryOp>; def bswap : SDNode<"ISD::BSWAP" , SDTIntUnaryOp>; |

