llvm::VNCoercion::canCoerceMustAliasedValueToLoad

Return true if CoerceAvailableValueToLoadType would succeed if it was called.

Synopsis

Declared in <llvm/Transforms/Utils/VNCoercion.h>

bool
canCoerceMustAliasedValueToLoad(
    Value* StoredVal,
    Type* LoadTy,
    Function* F);

Return Value

True if coerceAvailableValueToLoadType would succeed.

Parameters

NameDescription
StoredValValue that was stored to memory.
LoadTyType of the load that would consume the coerced value.
FFunction providing context for the coercion.