ΒΆvoid combineMetadataForCSE(
    llvm::Instruction* K,
    const llvm::Instruction* J,
    bool DoesKMove)

Description

Combine the metadata of two instructions so that K can replace J. This specifically handles the case of CSE-like transformations. Some metadata can only be kept if K dominates J. For this to be correct, K cannot be hoisted. Unknown metadata is removed.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:386

Parameters

llvm::Instruction* K
const llvm::Instruction* J
bool DoesKMove