19 cl::desc(
"Vectorization cost threshold."));
25 [[maybe_unused]]
auto CostBefore = SB.getBeforeCost();
26 [[maybe_unused]]
auto CostAfter = SB.getAfterCost();
27 InstructionCost CostAfterMinusBefore = SB.getAfterCost() - SB.getBeforeCost();
29 <<
" (before/after/threshold: " << CostBefore <<
"/"
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
This file defines an InstructionCost class that is used when calculating the cost of an instruction,...
Context & getContext() const
The tracker collects all the change objects and implements the main API for saving / reverting / acce...
LLVM_ABI void revert()
Stops tracking and reverts to saved state.
bool empty() const
\Returns true if there are no changes tracked.
LLVM_ABI void accept()
Stops tracking and accept changes.
bool runOnRegion(Region &Rgn, const Analyses &A) final
\Returns true if it modifies R.
initializer< Ty > init(const Ty &Val)
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.
static cl::opt< unsigned > CostThreshold("dfa-cost-threshold", cl::desc("Maximum cost accepted for the transformation"), cl::Hidden, cl::init(50))