[all-commits] [llvm/llvm-project] 007917: [MVE] Fold fadd(select(..., +0.0)) into a predicat...

david-arm via All-commits all-commits at lists.llvm.org
Fri Jun 10 03:10:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 007917b95ce2b569a8e5e90cd9b819676a6bb364
      https://github.com/llvm/llvm-project/commit/007917b95ce2b569a8e5e90cd9b819676a6bb364
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2022-06-10 (Fri, 10 Jun 2022)

  Changed paths:
    M llvm/lib/Target/ARM/ARMISelLowering.cpp
    M llvm/test/CodeGen/Thumb2/mve-pred-selectop3.ll

  Log Message:
  -----------
  [MVE] Fold fadd(select(..., +0.0)) into a predicated fadd

We already have patterns for matching fadd(select(..., -0.0)),
but an upcoming patch will lead to patterns using +0.0 as the
identity instead of -0.0. I'm adding support for these patterns
now to avoid any regressions for MVE.

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




More information about the All-commits mailing list