[all-commits] [llvm/llvm-project] 505685: [llvm][CodeGen] Check for memory instructions when...

Jean-Michel Gorius via All-commits all-commits at lists.llvm.org
Fri Apr 24 13:55:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 505685a67a77c06a72f45e62ca341d7e45dfa49c
      https://github.com/llvm/llvm-project/commit/505685a67a77c06a72f45e62ca341d7e45dfa49c
  Author: Jean-Michel Gorius <jean-michel.gorius at ens-rennes.fr>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M llvm/lib/CodeGen/MachineInstr.cpp
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

  Log Message:
  -----------
  [llvm][CodeGen] Check for memory instructions when querying for alias status

Summary:
Add a check to make sure that MachineInstr::mayAlias returns prematurely if at least one of its instruction parameters does not access memory. This prevents calls to TargetInstrInfo::areMemAccessesTriviallyDisjoint with incompatible instructions.

A side effect of this change is to render the mayAlias helper in the AArch64 load/store optimizer obsolete. We can now directly call the MachineInstr::mayAlias member function.

Reviewers: hfinkel, t.p.northover, mcrosier, eli.friedman, efriedma

Reviewed By: efriedma

Subscribers: efriedma, kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list