ΒΆbool mayBeMemoryDependent(
    const llvm::Instruction& I)

Description

Returns true if the result or effects of the given instructions \p I depend on or influence global memory. Memory dependence arises for example if the instruction reads from memory or may produce effects or undefined behaviour. Memory dependent instructions generally cannot be reorderd with respect to other memory dependent instructions or moved into non-dominated basic blocks. Instructions which just compute a value based on the values of their operands are not memory dependent.

Declared at: llvm/include/llvm/Analysis/ValueTracking.h:435

Parameters

const llvm::Instruction& I