[all-commits] [llvm/llvm-project] c2deac: [AArch64] Fix ldst optimization of non-immediate s...

Andrew Wei via All-commits all-commits at lists.llvm.org
Wed Sep 23 08:20:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c2deacd929dabded734a478e78c1eef23aa459c5
      https://github.com/llvm/llvm-project/commit/c2deacd929dabded734a478e78c1eef23aa459c5
  Author: Andrew Wei <weiwei64 at huawei.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
    A llvm/test/CodeGen/AArch64/ldst-opt-non-imm-offset.mir

  Log Message:
  -----------
  [AArch64] Fix ldst optimization of non-immediate store offset

When matching store instruction for ldst opt, we should make sure store instr is in 'reg+imm' form as load instr,
otherwise, it will have assertion in isLdOffsetInRangeOfSt since it will use getImm() directly.

Reviewed By: efriedma

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




More information about the All-commits mailing list