18 cl::desc(
"Vectorization cost threshold."));
25 [[maybe_unused]]
auto CostAfter = SB.getAfterCost();
26 InstructionCost CostAfterMinusBefore = SB.getAfterCost() - SB.getBeforeCost();
28 <<
" (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,...
The main job of the Region is to point to new instructions generated by vectorization passes.
Context & getContext() const
const ScoreBoard & getScoreboard() const
\Returns the ScoreBoard data structure that keeps track of instr costs.
InstructionCost getBeforeCost() const
\Returns the cost of the Removed instructions.
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.
static cl::opt< int > CostThreshold("sbvec-cost-threshold", cl::init(0), cl::Hidden, cl::desc("Vectorization cost threshold."))