[all-commits] [llvm/llvm-project] 261276: [NVPTX] Fold (add (select 0, (mul a, b)), c) -> (s...

Alex MacLean via All-commits all-commits at lists.llvm.org
Wed Jun 26 09:01:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2612765faf0e72cc57c6cce058305ddf241c3e3c
      https://github.com/llvm/llvm-project/commit/2612765faf0e72cc57c6cce058305ddf241c3e3c
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    M llvm/test/CodeGen/NVPTX/combine-mad.ll

  Log Message:
  -----------
  [NVPTX] Fold (add (select 0, (mul a, b)), c) -> (select c, (mad a, b, c)) (#96352)

Add folding for `(add (select cond, 0, (mul a, b)), c)` to `(select
cond, c, (mad a, b, c))`. Also, refactor the DAG folding implementation
to separate out the `ADD` and `FADD` folding cases.



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