LLVM: llvm::InstCostVisitor Class Reference (original) (raw)

Definition at line 153 of file FunctionSpecialization.h.

Cost InstCostVisitor::getLatencySavingsForKnownConstants ( )

Compute the latency savings from replacing all arguments with constants for a specialization candidate.

As this function computes the latency savings for all Instructions in KnownConstants at once, it should be called only after every instruction has been visited, i.e. after:

to ensure that the latency savings are calculated for all Instructions we have visited and found to be constant.

Definition at line 195 of file FunctionSpecialization.cpp.

References llvm::dbgs(), llvm::dyn_cast(), I, llvm::Latency, LLVM_DEBUG, and llvm::TargetTransformInfo::TCK_Latency.