HomePhabricator

[MachineInstr] Add support for instructions with multiple memory operands.

Authored by hliao on Oct 12 2020, 7:01 AM.

Description

[MachineInstr] Add support for instructions with multiple memory operands.

  • Basically iterate each pair of memory operands from both instructions and return true if any of them may alias.
  • The exception are memory instructions without any memory operand. They may touch everything and could alias to any memory instruction.

Differential Revision: https://reviews.llvm.org/D89447