[PowerPC] Allow constrained FP intrinsics in mightUseCTR
authorQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 24 Aug 2020 03:09:58 +0000 (11:09 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Mon, 24 Aug 2020 03:09:58 +0000 (11:09 +0800)
commitfed6107dcbfb44b1e0a8e7436d92ef6b1981a6d4
treef54a182df575292cffb034eb4daa7d797ac479e4
parent960cbc53ca170c8c605bf83fa63b49ab27a56f65
[PowerPC] Allow constrained FP intrinsics in mightUseCTR

We may meet Invalid CTR loop crash when there's constrained ops inside.
This patch adds constrained FP intrinsics to the list so that CTR loop
verification doesn't complain about it.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D81924
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll [new file with mode: 0644]