[all-commits] [llvm/llvm-project] d18ab0: [InstCombine] Fold fabs over selects (#86390)

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Mon Apr 22 00:38:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d18ab0e1bd5032d213acb94ef70564d221f63fa7
      https://github.com/llvm/llvm-project/commit/d18ab0e1bd5032d213acb94ef70564d221f63fa7
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-04-22 (Mon, 22 Apr 2024)

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

  Log Message:
  -----------
  [InstCombine] Fold fabs over selects (#86390)

This patch folds fabs over select if it is beneficial. I also tried
other interger/fp intrinsics. Only handling fabs shows benefit to some
real-world applications.



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