llvm::GISelAddressing::instMayAlias

Returns true if the instruction MI may alias Other.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/LoadStoreOpt.h>

bool
instMayAlias(
    MachineInstr const& MI,
    MachineInstr const& Other,
    MachineRegisterInfo& MRI,
    AliasAnalysis* AA);

Description

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.

Return Value

True if MI may alias Other.

Parameters

NameDescription
MIFirst instruction to test for aliasing.
OtherSecond instruction to test for aliasing.
MRIRegister info used to inspect addressing operands.
AAOptional alias analysis; may be null.