Merge !prof metadata from two instructions. Currently only implemented with direct callsites with branch weights.
Declared in <llvm/IR/Metadata.h>
static
MDNode*
getMergedProfMetadata(
MDNode* A,
MDNode* B,
Instruction const* AInstr,
Instruction const* BInstr);
Merged !prof metadata from A and B.
| Name | Description |
|---|---|
| A | First prof metadata node. |
| B | Second prof metadata node. |
| AInstr | Instruction associated with A. |
| BInstr | Instruction associated with B. |