[ARM][MVE] Tail-predication: support constant trip count
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 27 Jan 2020 11:05:26 +0000 (11:05 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 27 Jan 2020 11:05:26 +0000 (11:05 +0000)
commitb567ff2fa05c7df1b3bf74e7a79daa7aa5bd5912
tree016c1b9ae8559e5184907720fae41613cfb27565
parent6c2df5d14f7adba1ec7decbece29162aa3a30861
[ARM][MVE] Tail-predication: support constant trip count

We had support for runtime trip count values, but not constants, and this adds
supports for that.

And added a minor optimisation while I was add it: don't invoke Cleanup when
there's nothing to clean up.

Differential Revision: https://reviews.llvm.org/D73198
llvm/lib/Target/ARM/MVETailPredication.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-const.ll [new file with mode: 0644]