[all-commits] [llvm/llvm-project] 6b9899: [PowerPC] Do not legalize vector FDIV without VSX

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Sep 7 10:40:06 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b98995a44b2ebc94804ab552ed497c6860b6df3
      https://github.com/llvm/llvm-project/commit/6b98995a44b2ebc94804ab552ed497c6860b6df3
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-09-07 (Mon, 07 Sep 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/PowerPC/pr47373.ll

  Log Message:
  -----------
  [PowerPC] Do not legalize vector FDIV without VSX

Quite a while ago, we legalized these nodes as we added custom
handling for reciprocal estimates in the back end. We have since
moved to target-independent combines but neglected to turn off
legalization. As a result, we can now get selection failures on
non-VSX subtargets as evidenced in the listed PR.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47373
(cherry picked from commit 27714075848e7f05a297317ad28ad2570d8e5a43)


  Commit: b8fe222400586223c4fac4e98a480ee34cace780
      https://github.com/llvm/llvm-project/commit/b8fe222400586223c4fac4e98a480ee34cace780
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2020-09-07 (Mon, 07 Sep 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
    M llvm/test/CodeGen/PowerPC/jump-tables-collapse-rotate-remove-SrcMI.mir
    M llvm/test/CodeGen/PowerPC/mi-peephole.mir
    M llvm/test/CodeGen/PowerPC/pr47373.ll

  Log Message:
  -----------
  [PowerPC] Fix broken kill flag after MI peephole

The test case in https://bugs.llvm.org/show_bug.cgi?id=47373 exposed
two bugs in the PPC back end. The first one was fixed in commit
27714075848e7f05a297317ad28ad2570d8e5a43 but the test case had to
be added without -verify-machineinstrs due to the second bug.
This commit fixes the use-after-kill that is left behind by the
PPC MI peephole optimization.

(cherry picked from commit 69289cc10ffd1de4d3bf05d33948e6b21b6e68db)


Compare: https://github.com/llvm/llvm-project/compare/56a7fe31adbb...b8fe22240058


More information about the All-commits mailing list