Return true if MI0 and MI1 would produce identical values.
Synopsis
Declared in <llvm/CodeGen/TargetInstrInfo.h>
virtual
bool
produceSameValue(
MachineInstr const& MI0,
MachineInstr const& MI1,
MachineRegisterInfo const* MRI = nullptr) const;
Description
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.
Return Value
True if MI0 and MI1 would produce identical values.
Parameters
Name |
Description |
MI0 |
First instruction to compare. |
MI1 |
Second instruction to compare. |
MRI |
Machine register info for the containing function. |
Created with MrDocs