Return true if two machine instructions would produce identical values. By default, this is only true when the two instructions are deemed identical except for defs. If this function is called when the IR is still in SSA form, the caller can pass the MachineRegisterInfo for aggressive checks.
Synopsis
Declared in <llvm/CodeGen/TargetInstrInfo.h>
virtual
bool
produceSameValue(
MachineInstr const& MI0,
MachineInstr const& MI1,
MachineRegisterInfo const* MRI = nullptr) const;
Parameters
Name |
Description |
MI0 |
Representation of each machine instruction. |
MI1 |
Representation of each machine instruction. |
MRI |
MachineRegisterInfo ‐ Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc. |
Created with MrDocs