OSDN Git Service

[ARM][MVE] Tail-predication: check get.active.lane.mask's TC value
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Wed, 9 Sep 2020 13:39:51 +0000 (14:39 +0100)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 14 Sep 2020 10:32:15 +0000 (11:32 +0100)
commit676febc044ecbb27f8a227d351ced282cfe908cf
treeace4c264ffeed4a8cc91870f7bc4885b10eeda05
parent816663adb5f1362597c9b2947586e0847c5cdf9b
[ARM][MVE] Tail-predication: check get.active.lane.mask's TC value

This adds additional checks for the original scalar loop tripcount value, i.e.
get.active.lane.mask second argument, and perform several sanity checks to see
if it is of the form that we expect similarly like we already do for the IV
which is the first argument of get.active.lane.

Differential Revision: https://reviews.llvm.org/D86074
llvm/lib/Target/ARM/MVETailPredication.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/basic-tail-pred.ll
llvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-const.ll