ΒΆbool FoldSingleEntryPHINodes(
    llvm::BasicBlock* BB,
    llvm::MemoryDependenceResults* MemDep =
        nullptr)

Description

We know that BB has one predecessor. If there are any single-entry PHI nodes in it, fold them away. This handles the case when all entries to the PHI nodes in a block are guaranteed equal, such as when the block has exactly one predecessor.

Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:76

Parameters

llvm::BasicBlock* BB
llvm::MemoryDependenceResults* MemDep = nullptr