]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit 354d3106c from llvm git (by Kai Luo):
authordim <dim@FreeBSD.org>
Sun, 8 Nov 2020 12:47:35 +0000 (12:47 +0000)
committerdim <dim@FreeBSD.org>
Sun, 8 Nov 2020 12:47:35 +0000 (12:47 +0000)
commit9f897bf4613928a05e5459ae9e17cac843a874c6
tree4bd08260b3aa535872bea374c254a175e3f235d6
parent385c75cbde809d365679483a04ed3c77d213bf4b
Merge commit 354d3106c from llvm git (by Kai Luo):

  [PowerPC] Skip combining (uint_to_fp x) if x is not simple type

  Current powerpc64le backend hits
  ```
  Combining: t7: f64 = uint_to_fp t6
  llc: llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h:291:
  llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() &&
  "Expected a SimpleValueType!"' failed.
  ```
  This patch fixes it by skipping combination if `t6` is not simple
  type.
  Fixed https://bugs.llvm.org/show_bug.cgi?id=47660.

  Reviewed By: #powerpc, steven.zhang

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

This should fix the llvm assertion mentioned above when building the
following ports for powerpc64le:

* audio/traverso
* databases/percona57-pam-for-mysql
* databases/percona57-server
* emulators/citra
* emulators/citra-qt5
* games/7kaa
* graphics/dia
* graphics/mandelbulber
* graphics/pcl-pointclouds
* net-p2p/libtorrent-rasterbar
* textproc/htmldoc

Requested by: pkubaj
MFC after: 3 days
contrib/llvm-project/llvm/lib/Target/PowerPC/PPCISelLowering.cpp