[all-commits] [llvm/llvm-project] cf37ae: [InstCombine] Add one-use check when folding fabs ...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Wed Jan 29 05:45:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf37ae5caeafb372593ca4bb9ce0e91258524ca1
      https://github.com/llvm/llvm-project/commit/cf37ae5caeafb372593ca4bb9ce0e91258524ca1
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/intrinsic-select.ll

  Log Message:
  -----------
  [InstCombine] Add one-use check when folding fabs over selects (#122270)

Fixes multi-use issue introduced by
https://github.com/llvm/llvm-project/pull/86390.
It allows the folding of `fabs (select Cond, TrueC, FalseC)` to avoid performance regression in ocio



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