]> granicus.if.org Git - llvm/commit
[ARM] Add patterns for CTLZ on MVE
authorOliver Cruickshank <oliver.cruickshank@arm.com>
Mon, 16 Sep 2019 15:19:49 +0000 (15:19 +0000)
committerOliver Cruickshank <oliver.cruickshank@arm.com>
Mon, 16 Sep 2019 15:19:49 +0000 (15:19 +0000)
commite68996a611753a42c626360194e556871cbaafa7
treed22513a9e03454aabb41dd0a127b8e60f8bd6a38
parentf4ee527f9a9866438e9767ba04ebab6f9c84d28c
[ARM] Add patterns for CTLZ on MVE

CTLZ intrinsic can use the VCLS instruction on MVE, which produces
better results than expanding.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMInstrMVE.td
test/CodeGen/Thumb2/mve-ctlz.ll [new file with mode: 0644]