Return true if I is too expensive to speculatively execute.

Synopsis

Declared in <llvm/Analysis/TargetTransformInfo.h>

bool
isExpensiveToSpeculativelyExecute(Instruction const* I) const;

Description

This normally just wraps around a getInstructionCost() call, but some targets might report a low TCK_SizeAndLatency value that is incompatible with the fixed TCC_Expensive value. NOTE: This assumes the instruction passes isSafeToSpeculativelyExecute().

Return Value

True if I is too expensive to speculatively execute.

Parameters

Name

Description

I

Instruction to cost.

Created with MrDocs