[all-commits] [llvm/llvm-project] 2762e6: [PowerPC] Fix a crash in POWER 9 setb peephole

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Sun Nov 1 22:30:54 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2762e6734fae97b3dabf617e5ec7f053f79e4e32
      https://github.com/llvm/llvm-project/commit/2762e6734fae97b3dabf617e5ec7f053f79e4e32
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2020-11-02 (Mon, 02 Nov 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
    M llvm/test/CodeGen/PowerPC/ppc64-P9-setb.ll

  Log Message:
  -----------
  [PowerPC] Fix a crash in POWER 9 setb peephole

Variable InnerIsSel references FalseRes, while FalseRes might be
zext/sext. So InnerIsSel should reference SetOrSelCC, otherwise a crash
will happen.

Reviewed By: steven.zhang

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




More information about the All-commits mailing list