[all-commits] [llvm/llvm-project] be95b4: [PowerPC] Look through OR, AND, XOR instructions w...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Mon May 8 11:25:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be95b4dec2604247d9fbad5f7641b4373b740904
      https://github.com/llvm/llvm-project/commit/be95b4dec2604247d9fbad5f7641b4373b740904
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/test/CodeGen/PowerPC/ppc-clear-before-return.ll

  Log Message:
  -----------
  [PowerPC] Look through OR, AND, XOR instructions when checking a clear.

This patch adds the additional step of looking through AND, OR, XOR
instructions when we check the number of leading zeros.

Reviewed By: shchenz

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




More information about the All-commits mailing list