[all-commits] [llvm/llvm-project] e20123: [NFC][AArch64] Handle processLogicalImmediate error

Andrew Savonichev via All-commits all-commits at lists.llvm.org
Wed Nov 10 05:58:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e201232ececbf386e9b45db7a6ee9dde348e124e
      https://github.com/llvm/llvm-project/commit/e201232ececbf386e9b45db7a6ee9dde348e124e
  Author: Andrew Savonichev <andrew.savonichev at gmail.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

  Log Message:
  -----------
  [NFC][AArch64] Handle processLogicalImmediate error

If processLogicalImmediate fails, we should return from the function
without changing InsInstrs or DelInstrs. This happens for
CodeGen/AArch64/urem-seteq-nonzero.ll LIT test as described in
https://reviews.llvm.org/D99662#2662296.

Callers of genAlternativeCodeSequence skip patterns where InsInstrs
stays empty, so this does not cause any issues now.

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




More information about the All-commits mailing list