[PowerPC] Do not emit HW loop if the body contains calls to lrint/lround
authorNemanja Ivanovic <nemanjai@ca.ibm.com>
Mon, 28 Oct 2019 21:08:30 +0000 (16:08 -0500)
committerNemanja Ivanovic <nemanjai@ca.ibm.com>
Mon, 28 Oct 2019 22:23:08 +0000 (17:23 -0500)
commit97e36260709c541044f30092b420238511e13e5b
tree2185dc031cdd64ea14698d8989e018abe70122de
parentad531fff81a2a266ffed1d7da3333778cb59c983
[PowerPC] Do not emit HW loop if the body contains calls to lrint/lround

These two intrinsics are lowered to calls so should prevent the formation of
CTR loops. In a subsequent patch, we will handle all currently known intrinsics
and prevent the formation of HW loops if any unknown intrinsics are encountered.

Differential revision: https://reviews.llvm.org/D68841
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/pr43527.ll [new file with mode: 0644]