Home
last modified time | relevance | path

Searched refs:mayHaveSideEffects (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DReachingDefAnalysis.cpp545 static bool mayHaveSideEffects(MachineInstr &MI) { in mayHaveSideEffects() function
575 if (mayHaveSideEffects(*I)) in isSafeToMove()
623 else if (mayHaveSideEffects(*MI)) { in isSafeToRemove()
652 if (mayHaveSideEffects(*Def)) in collectKilledOperands()
H A DAnalysis.cpp572 if (BBI->mayHaveSideEffects() || BBI->mayReadFromMemory() || in isInTailCallPosition()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp43 if (Insn.mayHaveSideEffects()) in isGuardAsWidenableBranch()
H A DCodeMetrics.cpp38 if (!I->mayHaveSideEffects() && !I->isTerminator()) in appendSpeculatableOperands()
H A DDemandedBits.cpp51 I->mayHaveSideEffects(); in isAlwaysLive()
H A DLint.cpp611 std::prev(I.getIterator())->mayHaveSideEffects(), in visitUnreachableInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFlattenCFG.cpp344 if (iter1->mayHaveSideEffects()) { in CompareIfRegionBlock()
480 if (isa<PHINode>(CI) || CI->mayHaveSideEffects() || in MergeIfRegion()
H A DLoopUtils.cpp508 assert(!OldTerm->mayHaveSideEffects() && in deleteDeadLoop()
1394 if (Curr->mayHaveSideEffects()) in hasHardUserWithinLoop()
1468 return I.mayHaveSideEffects(); in canLoopBeDeleted()
2070 all_of(*Header, [](Instruction &I) { return !I.mayHaveSideEffects(); }); in hasPartialIVCondition()
2081 *Current, [](Instruction &I) { return !I.mayHaveSideEffects(); }); in hasPartialIVCondition()
H A DLoopRotationUtils.cpp697 if (!C->mayHaveSideEffects()) { in rotateLoop()
H A DLoopUnrollAndJam.cpp977 if (I->mayHaveSideEffects() || I->mayReadOrWriteMemory()) in isSafeToUnrollAndJam()
H A DSimplifyCFG.cpp1453 if (I->mayHaveSideEffects() || isa<AllocaInst>(I)) in skippedInstrFlags()
1470 (I->mayReadFromMemory() || I->mayHaveSideEffects() || isa<AllocaInst>(I))) in isSafeToHoistInstr()
2804 return !I->mayHaveSideEffects() && !I->isTerminator() && in isEphemeral()
3100 if (!OpI || OpI->getParent() != BB || OpI->mayHaveSideEffects()) in SpeculativelyExecuteBB()
3407 if (!N->mayHaveSideEffects()) { in FoldCondBranchOnValueKnownInPredecessorImpl()
4355 return I.mayWriteToMemory() || I.mayHaveSideEffects(); in tryWidenCondBranchToCondBranch()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DBDCE.cpp103 if (I.mayHaveSideEffects() && I.use_empty()) in bitTrackingDCE()
H A DTailRecursionElimination.cpp342 if (I->mayHaveSideEffects()) // This also handles volatile loads. in canMoveAboveCall()
347 if (CI->mayHaveSideEffects()) { in canMoveAboveCall()
H A DLoopDeletion.cpp108 return I.mayHaveSideEffects() && !I.isDroppable(); in isLoopDead()
H A DADCE.cpp333 if (I.isEHPad() || I.mayHaveSideEffects()) { in isAlwaysLive()
H A DLoopInterchange.cpp543 return I.mayHaveSideEffects() || I.mayReadFromMemory(); in containsUnsafeInstructions()
1323 assert(!NewI->mayHaveSideEffects() && in transform()
H A DIndVarSimplify.cpp1116 if (I->mayHaveSideEffects() || I->mayReadFromMemory()) in sinkUnusedInvariants()
1844 if (I.mayHaveSideEffects()) in predicateLoopExits()
H A DJumpThreading.cpp417 if (Cond->use_empty() && !Cond->mayHaveSideEffects()) { in replaceFoldableUses()
1657 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects()) in processThreadableEdges()
2702 if (!New->mayHaveSideEffects()) { in duplicateCondBranchOnPHIIntoPred()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUImageIntrinsicOptimizer.cpp148 if (I->mayHaveSideEffects()) { in collectMergeableInsts()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp310 if (!OpR || OpR->mayHaveSideEffects() || EphRecipes.contains(OpR)) in collectEphemeralRecipesForVPlan()
H A DVPlanTransforms.cpp132 SinkCandidate->mayHaveSideEffects() || in sinkScalarOperands()
500 if (R.mayHaveSideEffects()) in isDeadRecipe()
781 if (SinkCandidate->mayHaveSideEffects()) in sinkRecurrenceUsersAfterPrevious()
H A DVPlanRecipes.cpp129 bool VPRecipeBase::mayHaveSideEffects() const { in mayHaveSideEffects() function in VPRecipeBase
170 assert((!I || !I->mayHaveSideEffects()) && in mayHaveSideEffects()
181 cast<VPWidenMemoryRecipe>(this)->getIngredient().mayHaveSideEffects() == in mayHaveSideEffects()
188 return R->getUnderlyingInstr()->mayHaveSideEffects(); in mayHaveSideEffects()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp1123 bool Instruction::mayHaveSideEffects() const { in mayHaveSideEffects() function in Instruction
1128 return (!isa<CallInst>(this) || !this->mayHaveSideEffects()) && in isSafeToRemove()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp401 if (User->mayHaveSideEffects()) in findValueToReuse()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h809 bool mayHaveSideEffects() const LLVM_READONLY;

12