[all-commits] [llvm/llvm-project] 38d84e: [GISel] Legalize G_FSUB to G_FADD + G_FNEG even if...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Fri Apr 14 22:12:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38d84e3d76fb161b8cfbaad7644fb72b20c6c433
      https://github.com/llvm/llvm-project/commit/38d84e3d76fb161b8cfbaad7644fb72b20c6c433
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2023-04-15 (Sat, 15 Apr 2023)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

  Log Message:
  -----------
  [GISel] Legalize G_FSUB to G_FADD + G_FNEG even if G_FNEG is illegal

`G_FNEG` used to be legalized to `G_FSUB -0, x` causing infinite loop.
This is no longer the case after D84287.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D148187




More information about the All-commits mailing list