Lines Matching refs:SafetyInfo

80                                   Loop *CurLoop, LICMSafetyInfo *SafetyInfo);
83 LICMSafetyInfo *SafetyInfo);
93 LICMSafetyInfo *SafetyInfo);
221 LICMSafetyInfo SafetyInfo; in runOnLoop() local
222 computeLICMSafetyInfo(&SafetyInfo, CurLoop); in runOnLoop()
236 CurAST, &SafetyInfo); in runOnLoop()
239 CurLoop, CurAST, &SafetyInfo); in runOnLoop()
253 CurAST, &SafetyInfo); in runOnLoop()
293 AliasSetTracker *CurAST, LICMSafetyInfo *SafetyInfo) { in sinkRegion() argument
298 SafetyInfo != nullptr && "Unexpected input to sinkRegion"); in sinkRegion()
311 sinkRegion(Children[i], AA, LI, DT, TLI, CurLoop, CurAST, SafetyInfo); in sinkRegion()
336 canSinkOrHoistInst(I, AA, DT, CurLoop, CurAST, SafetyInfo)) { in sinkRegion()
351 AliasSetTracker *CurAST, LICMSafetyInfo *SafetyInfo) { in hoistRegion() argument
355 SafetyInfo != nullptr && "Unexpected input to hoistRegion"); in hoistRegion()
385 canSinkOrHoistInst(I, AA, DT, CurLoop, CurAST, SafetyInfo) && in hoistRegion()
386 isSafeToExecuteUnconditionally(I, DT, CurLoop, SafetyInfo)) in hoistRegion()
393 hoistRegion(Children[i], AA, LI, DT, TLI, CurLoop, CurAST, SafetyInfo); in hoistRegion()
400 void llvm::computeLICMSafetyInfo(LICMSafetyInfo * SafetyInfo, Loop * CurLoop) { in computeLICMSafetyInfo() argument
404 SafetyInfo->MayThrow = false; in computeLICMSafetyInfo()
405 SafetyInfo->HeaderMayThrow = false; in computeLICMSafetyInfo()
408 (I != E) && !SafetyInfo->HeaderMayThrow; ++I) in computeLICMSafetyInfo()
409 SafetyInfo->HeaderMayThrow |= I->mayThrow(); in computeLICMSafetyInfo()
411 SafetyInfo->MayThrow = SafetyInfo->HeaderMayThrow; in computeLICMSafetyInfo()
414 BBE = CurLoop->block_end(); (BB != BBE) && !SafetyInfo->MayThrow ; ++BB) in computeLICMSafetyInfo()
416 (I != E) && !SafetyInfo->MayThrow; ++I) in computeLICMSafetyInfo()
417 SafetyInfo->MayThrow |= I->mayThrow(); in computeLICMSafetyInfo()
425 LICMSafetyInfo *SafetyInfo) { in canSinkOrHoistInst() argument
485 return isSafeToExecuteUnconditionally(I, DT, CurLoop, SafetyInfo); in canSinkOrHoistInst()
642 LICMSafetyInfo *SafetyInfo) { in isSafeToExecuteUnconditionally() argument
647 return isGuaranteedToExecute(Inst, DT, CurLoop, SafetyInfo); in isSafeToExecuteUnconditionally()
651 Loop *CurLoop, LICMSafetyInfo * SafetyInfo) { in isGuaranteedToExecute() argument
663 return !SafetyInfo->HeaderMayThrow; in isGuaranteedToExecute()
667 if (SafetyInfo->MayThrow) in isGuaranteedToExecute()
776 LICMSafetyInfo * SafetyInfo) { in promoteLoopAccessesToScalars() argument
780 SafetyInfo != nullptr && in promoteLoopAccessesToScalars()
872 if (isGuaranteedToExecute(*UI, DT, CurLoop, SafetyInfo)) { in promoteLoopAccessesToScalars()
879 CurLoop, SafetyInfo); in promoteLoopAccessesToScalars()