Go to the source code of this file.
|
| | STATISTIC (GuardsEliminated, "Number of eliminated guards") |
| |
| | STATISTIC (CondBranchEliminated, "Number of eliminated conditional branches") |
| |
| static bool | isSupportedGuardInstruction (const Instruction *Insn) |
| |
| | INITIALIZE_PASS_BEGIN (GuardWideningLegacyPass, "guard-widening", "Widen guards", false, false) INITIALIZE_PASS_END(GuardWideningLegacyPass |
| |
| guard Widen false | INITIALIZE_PASS_BEGIN (LoopGuardWideningLegacyPass, "loop-guard-widening", "Widen guards (within a single loop, as a loop pass)", false, false) INITIALIZE_PASS_END(LoopGuardWideningLegacyPass |
| |
| guard Widen false loop guard Widen | guards (within a single loop, as a loop pass)" |
| |
◆ DEBUG_TYPE
◆ guards()
| guard Widen false loop guard Widen guards |
( |
within a single |
loop, |
|
|
as a loop |
pass |
|
) |
| |
◆ INITIALIZE_PASS_BEGIN() [1/2]
◆ INITIALIZE_PASS_BEGIN() [2/2]
◆ isSupportedGuardInstruction()
Definition at line 284 of file GuardWidening.cpp.
References llvm::all_of(), assert(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallVectorTemplateCommon< T >::begin(), Check(), llvm::computeKnownBits(), llvm::LoopBase< BlockT, LoopT >::contains(), llvm::copy_if(), llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::count(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::BinaryOperator::CreateNot(), llvm::dbgs(), llvm::df_begin(), llvm::df_end(), llvm::PostDominatorTree::dominates(), llvm::DominatorTree::dominates(), llvm::dyn_cast(), llvm::numbers::e, E, llvm::SmallVectorImpl< T >::emplace_back(), llvm::SmallVectorBase::empty(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::SmallVectorImpl< T >::erase(), llvm::find(), llvm::SmallVectorTemplateCommon< T >::front(), llvm::ConstantInt::get(), llvm::APInt::getBitWidth(), llvm::Value::getContext(), llvm::ConstantInt::getFalse(), llvm::CmpInst::getInversePredicate(), llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor(), llvm::Constant::getNullValue(), llvm::Instruction::getParent(), llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::getPath(), llvm::df_iterator< GraphT, SetType, ExtStorage, GT >::getPathLength(), llvm::APInt::getSignedMinValue(), llvm::ConstantInt::getTrue(), llvm::ConstantInt::getValue(), llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULT, llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, ValueInfoT, detail::DenseSetPair< ValueT > >, ValueInfoT >::insert(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorImpl< T >::insert(), llvm::ConstantRange::intersectWith(), llvm::ConstantRange::inverse(), llvm::isGuard(), llvm::isGuardAsWidenableBranch(), llvm::isKnownNonNegative(), llvm::APInt::isMinValue(), llvm::DominatorTree::isReachableFromEntry(), llvm::isSafeToSpeculativelyExecute(), LLVM_DEBUG, llvm_unreachable, llvm::PatternMatch::m_Add(), llvm::PatternMatch::m_And(), llvm::PatternMatch::m_ConstantInt(), llvm::PatternMatch::m_ICmp(), llvm::PatternMatch::m_Or(), llvm::PatternMatch::m_Specific(), llvm::PatternMatch::m_Value(), llvm::make_range(), llvm::ConstantRange::makeExactICmpRegion(), llvm::PatternMatch::match(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::remove_if(), llvm::Value::setName(), llvm::SmallVectorBase::size(), llvm::sort(), std::swap(), llvm::ConstantRange::unionWith(), WidenBranchGuards, and llvm::KnownBits::Zero.
◆ STATISTIC() [1/2]
| STATISTIC |
( |
GuardsEliminated |
, |
|
|
"Number of eliminated guards" |
|
|
) |
| |
◆ STATISTIC() [2/2]
| STATISTIC |
( |
CondBranchEliminated |
, |
|
|
"Number of eliminated conditional branches" |
|
|
) |
| |
◆ false
◆ guards
◆ WidenBranchGuards
◆ widening