[all-commits] [llvm/llvm-project] 241cbf: [PowerPC] Fix crash in peephole optimization

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Mon Dec 2 06:56:21 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 241cbf201a6f4b7658697e3c76fc6e741d049a01
      https://github.com/llvm/llvm-project/commit/241cbf201a6f4b7658697e3c76fc6e741d049a01
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2019-12-02 (Mon, 02 Dec 2019)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
    A llvm/test/CodeGen/PowerPC/pr44183.ll

  Log Message:
  -----------
  [PowerPC] Fix crash in peephole optimization

When converting reg+reg shifts to reg+imm rotates, we neglect to consider the
CodeGenOnly versions of the 32-bit shift mnemonics. This means we produce a
rotate with missing operands which causes a crash.

Committing this fix without review since it is non-controversial that the list
of mnemonics to consider should include the 64-bit aliases for the exact
mnemonics.

Fixes PR44183.




More information about the All-commits mailing list