diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-17 14:37:19 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-05-17 14:37:19 +0000 |
| commit | 279314e81b5efc5bb2dd41439de8fa9ea36b1859 (patch) | |
| tree | 64bfe01a6dbd3eac77bb1a5b5d7804e0a2a56cbf /llvm/lib | |
| parent | 8369a9beb7edbcebc0a07dd8155ac6e17f12ad93 (diff) | |
| download | bcm5719-llvm-279314e81b5efc5bb2dd41439de8fa9ea36b1859.tar.gz bcm5719-llvm-279314e81b5efc5bb2dd41439de8fa9ea36b1859.zip | |
[X86][AVX] Remove LowerCTTZ's AVX1 custom vector handling.
We can now rely on generic expansion to handle this.
llvm-svn: 361038
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 6366f2e4f7c..a52d0faa35b 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -1190,9 +1190,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM, setOperationAction(ISD::CTPOP, VT, Custom); setOperationAction(ISD::CTLZ, VT, Custom); - // TODO - remove this once 256-bit X86ISD::ANDNP correctly split. - setOperationAction(ISD::CTTZ, VT, HasInt256 ? Expand : Custom); - // The condition codes aren't legal in SSE/AVX and under AVX512 we use // setcc all the way to isel and prefer SETGT in some isel patterns. setCondCodeAction(ISD::SETLT, VT, Custom); @@ -24018,10 +24015,6 @@ static SDValue LowerCTTZ(SDValue Op, const X86Subtarget &Subtarget, SDValue N0 = Op.getOperand(0); SDLoc dl(Op); - // Decompose 256-bit ops into smaller 128-bit ops. - if (VT.is256BitVector() && !Subtarget.hasInt256()) - return Lower256IntUnary(Op, DAG); - assert(!VT.isVector() && Op.getOpcode() == ISD::CTTZ && "Only scalar CTTZ requires custom lowering"); |

