[PowerPC][NFC] add an option to keep the test point
authorChen Zheng <czhengsz@cn.ibm.com>
Fri, 6 Jan 2023 01:46:52 +0000 (20:46 -0500)
committerChen Zheng <czhengsz@cn.ibm.com>
Fri, 6 Jan 2023 02:18:53 +0000 (21:18 -0500)
commitdd0edc876cfeeaafe67a37ac5ed81022a868b97a
tree4bbcb925a8cae53c48ffde68f6ac4bec409cb979
parent8d798eab16ca3ab38d42f097d059c4cf9d8b23e7
[PowerPC][NFC] add an option to keep the test point

Passes before hardware loop insertion change the loop to a form which
is not a hardware loop candidate (return early before checking the ctr clobbers).
And the PHI in the loop exit block is also optimized away. This breaks the
previous test point when the case was committed. Fixing this by running this
case just before hardware loop insertion pass.

Reviewed By: nemanjai

Differential revision: https://reviews.llvm.org/D140366
llvm/test/CodeGen/PowerPC/pr48527.ll