[all-commits] [llvm/llvm-project] 052c5b: [PPC] Do not emit extswsli in 32BIT mode when usin...

Zarko Todorovski via All-commits all-commits at lists.llvm.org
Wed Sep 30 08:07:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 052c5bf40a9fc9ffe1bb2669763d8a0d2dea2b2e
      https://github.com/llvm/llvm-project/commit/052c5bf40a9fc9ffe1bb2669763d8a0d2dea2b2e
  Author: Zarko Todorovski <zarko at ca.ibm.com>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/PowerPC/ppc-32bit-shift.ll

  Log Message:
  -----------
  [PPC] Do not emit extswsli in 32BIT mode when using -mcpu=pwr9

It looks like in some circumstances when compiling with `-mcpu=pwr9` we create an EXTSWSLI node when which causes llc to fail. No such error occurs in pwr8 or lower.

This occurs in 32BIT AIX and BE Linux. the cause seems to be that the default return in combineSHL is to create an EXTSWSLI node.  Adding a check for whether we are in PPC64 before that fixes the issue.

Reviewed By: #powerpc, nemanjai

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




More information about the All-commits mailing list