[all-commits] [llvm/llvm-project] 9a0f25: [SelectOpt] Support ADD and SUB with zext operands...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Nov 30 13:06:02 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a0f25158c2eff539de1efbd55de71e711135db7
      https://github.com/llvm/llvm-project/commit/9a0f25158c2eff539de1efbd55de71e711135db7
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-11-30 (Sat, 30 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectOptimize.cpp
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/test/CodeGen/AArch64/selectopt-cast.ll

  Log Message:
  -----------
  [SelectOpt] Support ADD and SUB with zext operands. (#115489)

Extend the support for implicit selects in the form of OR with a ZExt
operand to support ADD and SUB binops as well. They similarly can form
implicit selects which can be profitable to convert back the branches.

PR: https://github.com/llvm/llvm-project/pull/115489



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