[all-commits] [llvm/llvm-project] 354d31: [PowerPC] Skip combining (uint_to_fp x) if x is no...

bzEq via All-commits all-commits at lists.llvm.org
Sun Oct 18 22:24:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 354d3106c6a9d6de824ee7ffa501387592b15afa
      https://github.com/llvm/llvm-project/commit/354d3106c6a9d6de824ee7ffa501387592b15afa
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

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

  Log Message:
  -----------
  [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




More information about the All-commits mailing list