[all-commits] [llvm/llvm-project] 0c9c62: [PowerPC ]convert `(setcc (and X, 1), 0, eq)` to ...

zhijian lin via All-commits all-commits at lists.llvm.org
Tue Nov 25 10:17:01 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c9c62adf165ebf4128bcfe9863fa0c524b46b7b
      https://github.com/llvm/llvm-project/commit/0c9c62adf165ebf4128bcfe9863fa0c524b46b7b
  Author: zhijian lin <zhijian at ca.ibm.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/memCmpUsedInZeroEqualityComparison.ll

  Log Message:
  -----------
  [PowerPC ]convert `(setcc (and X, 1), 0, eq)`  to  `XORI (and X, 1), 1` (#168384)

Convert `(setcc (and X, 1), 0, eq)` to `XORI (and X, 1), 1`  , it will save one instruction.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list