[all-commits] [llvm/llvm-project] fc8e74: [AMDGPU] Avoid an illegal operand in si-shrink-ins...

Piotr Sobczak via All-commits all-commits at lists.llvm.org
Wed Jan 27 23:54:53 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fc8e7411218c846386650cfba111b62827c71da0
      https://github.com/llvm/llvm-project/commit/fc8e7411218c846386650cfba111b62827c71da0
  Author: Piotr Sobczak <Piotr.Sobczak at amd.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    A llvm/test/CodeGen/AMDGPU/shrink-instructions-illegal-fold.mir

  Log Message:
  -----------
  [AMDGPU] Avoid an illegal operand in si-shrink-instructions

Before the patch it was possible to trigger a constant bus
violation when folding immediates into a shrunk instruction.

The patch adds a check to enforce the legality of the new operand.

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




More information about the All-commits mailing list