Returns true if the instruction MI may alias Other.
Declared in <llvm/CodeGen/GlobalISel/LoadStoreOpt.h>
bool
instMayAlias(
MachineInstr const& MI,
MachineInstr const& Other,
MachineRegisterInfo& MRI,
AliasAnalysis* AA);
This function uses multiple strategies to detect aliasing, whereas aliasIsKnownForLoadStore just looks at the addresses of load/stores and tries to reason about base/index/offsets.
True if MI may alias Other.
| Name | Description |
|---|---|
| MI | First instruction to test for aliasing. |
| Other | Second instruction to test for aliasing. |
| MRI | Register info used to inspect addressing operands. |
| AA | Optional alias analysis; may be null. |