[all-commits] [llvm/llvm-project] 1fd1f6: [amdgpu] Fix a crash case when `V_CNDMASK` could b...

darkbuck via All-commits all-commits at lists.llvm.org
Mon Dec 14 10:13:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fd1f638b68ca4a9cf3bd071a7cba0bac0b189c6
      https://github.com/llvm/llvm-project/commit/1fd1f638b68ca4a9cf3bd071a7cba0bac0b189c6
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    A llvm/test/CodeGen/AMDGPU/fold-cndmask-wave32.mir

  Log Message:
  -----------
  [amdgpu] Fix a crash case when `V_CNDMASK` could be simplified.

- Once an instruction is simplified, foldable candidates from it should
  be invalidated or skipped as the operand index is no longer valid.

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




More information about the All-commits mailing list