Merge commit 97e362607 from llvm git (by Nemanja Ivanovic):
[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 This should fix an "invalid CRT loop" assertion when building the www/node port for powerpc64. Requested by: Alfredo Dal'Ava Júnior <alfredo.junior@eldorado.org.br> MFC after: 1 month X-MFC-With: r353358
This commit is contained in:
parent
45d526df8c
commit
8e4230fb31
@ -331,8 +331,12 @@ bool PPCTTIImpl::mightUseCTR(BasicBlock *BB,
|
||||
case Intrinsic::ceil: Opcode = ISD::FCEIL; break;
|
||||
case Intrinsic::trunc: Opcode = ISD::FTRUNC; break;
|
||||
case Intrinsic::rint: Opcode = ISD::FRINT; break;
|
||||
case Intrinsic::lrint: Opcode = ISD::LRINT; break;
|
||||
case Intrinsic::llrint: Opcode = ISD::LLRINT; break;
|
||||
case Intrinsic::nearbyint: Opcode = ISD::FNEARBYINT; break;
|
||||
case Intrinsic::round: Opcode = ISD::FROUND; break;
|
||||
case Intrinsic::lround: Opcode = ISD::LROUND; break;
|
||||
case Intrinsic::llround: Opcode = ISD::LLROUND; break;
|
||||
case Intrinsic::minnum: Opcode = ISD::FMINNUM; break;
|
||||
case Intrinsic::maxnum: Opcode = ISD::FMAXNUM; break;
|
||||
case Intrinsic::umul_with_overflow: Opcode = ISD::UMULO; break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user