[all-commits] [llvm/llvm-project] 85e41f: [AArch64] Select to CCMN when the CCMP's second op...

chenglin.bi via All-commits all-commits at lists.llvm.org
Fri Oct 14 06:41:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85e41fcaacc88b7f9e1d3ad27545d5c6edcbacef
      https://github.com/llvm/llvm-project/commit/85e41fcaacc88b7f9e1d3ad27545d5c6edcbacef
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/arm64-ccmp.ll

  Log Message:
  -----------
  [AArch64] Select to CCMN when the CCMP's second operator is negative constant

CCMP/CCMN's second operator support const from 0 to 31. When the CCMP's second operator is in the range [-31, -1] we can replace it with CCMN to avoid extra mov.

Fix: #57034

Reviewed By: efriedma

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




More information about the All-commits mailing list