ΒΆbool instMayAlias(const llvm::MachineInstr& MI,
const llvm::MachineInstr& Other,
llvm::MachineRegisterInfo& MRI,
llvm::AliasAnalysis* AA)
bool instMayAlias(const llvm::MachineInstr& MI,
const llvm::MachineInstr& Other,
llvm::MachineRegisterInfo& MRI,
llvm::AliasAnalysis* AA)
Description
Returns true if the instruction \p MI may alias \p Other. This function uses multiple strategies to detect aliasing, whereas aliasIsKnownForLoadStore just looks at the addresses of load/stores and is tries to reason about base/index/offsets.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/LoadStoreOpt.h:56
Parameters
- const llvm::MachineInstr& MI
- const llvm::MachineInstr& Other
- llvm::MachineRegisterInfo& MRI
- llvm::AliasAnalysis* AA