[all-commits] [llvm/llvm-project] 0a1210: [InstSimplify] try harder to fold fmul with 0.0 op...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Oct 4 08:20:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a1210e482c7d8bd8d4bf1740a5175b29d05da17
      https://github.com/llvm/llvm-project/commit/0a1210e482c7d8bd8d4bf1740a5175b29d05da17
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/CodeGen/PowerPC/pr47660.ll
    M llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll
    M llvm/test/Transforms/InstSimplify/floating-point-compare.ll

  Log Message:
  -----------
  [InstSimplify] try harder to fold fmul with 0.0 operand

https://alive2.llvm.org/ce/z/oShzr3

This was noted as a missing fold in D134876 (with additional
examples based on issue #58046).

I'm assuming that fmul with a zero operand is rare enough
that the use of ValueTracking will not noticeably increase
compile-time.

This adjusts a PowerPC codegen test that was added with D88388
because it would get folded away and no longer provide coverage
for the bug fix.




More information about the All-commits mailing list