[PowerPC] Don't convert Loop to CTR Loop for fp128 BinaryOperator
authorKang Zhang <shkzhang@cn.ibm.com>
Thu, 18 Jun 2020 02:54:19 +0000 (02:54 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Thu, 18 Jun 2020 02:54:19 +0000 (02:54 +0000)
commit58e19d465a13b4ada2f7f3ea0252601dc700b777
tree810797f322e125a30a3b54d330577951318f8e21
parent1f391afbf44e5b9e8d96bf8b92dbbc575e4ef0af
[PowerPC] Don't convert Loop to CTR Loop for fp128 BinaryOperator

Summary:
For PPC BinaryOperator of fp128 will become libcall, we shouldn't
convert loop to CTR loop if the loop contain libCall.

But currently, in the PPCTTIImpl::mightUseCTR() function, we only deal
with BinaryOperator for ppc_fp128, don't deal with the fp128.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D81353
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/ctrloop-fp128.ll