[all-commits] [llvm/llvm-project] f0cdf4: [InstCombine] Check FPMathOperator for Ctx before ...

annamthomas via All-commits all-commits at lists.llvm.org
Tue Nov 7 07:50:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0cdf4b468f6ee48b0d0d51ce78145455e2f07a6
      https://github.com/llvm/llvm-project/commit/f0cdf4b468f6ee48b0d0d51ce78145455e2f07a6
  Author: Anna Thomas <anna at azul.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstCombine/minimum.ll

  Log Message:
  -----------
  [InstCombine] Check FPMathOperator for Ctx before FMF check

We need to check FPMathOperator for Ctx instruction before checking fast
math flag on this Ctx.

Ctx is not always an FPMathOperator, so explicitly check for it.

Fixes #71548.




More information about the All-commits mailing list