[all-commits] [llvm/llvm-project] be50a2: Update foldFMulReassoc to respect absent fast-math...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Tue Apr 16 16:22:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be50a259f1fe77240b000f6b695b9b6394f4936b
      https://github.com/llvm/llvm-project/commit/be50a259f1fe77240b000f6b695b9b6394f4936b
  Author: Andy Kaylor <andrew.kaylor at intel.com>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/fast-math.ll
    M llvm/test/Transforms/InstCombine/fmul-pow.ll
    M llvm/test/Transforms/InstCombine/fmul.ll

  Log Message:
  -----------
  Update foldFMulReassoc to respect absent fast-math flags (#88589)

This change updates a few of the transformations in foldFMulReassoc to
respect absent fast-math flags in cases where fmul and fdiv, fadd, or fsub
instructions were being folded but the code was only checking for
fast-math flags on the fmul instruction and was transferring flags to
the folded instruction that were not present on the other original 
instructions.

This fixes https://github.com/llvm/llvm-project/issues/82857



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