[all-commits] [llvm/llvm-project] 7e4348: [AMDGPU] Remove set_gpr_idx instructions in condit...

Jay Foad via All-commits all-commits at lists.llvm.org
Fri Apr 30 14:21:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e43483dd1699c34c5bccb56fb6c437e1682d8ad
      https://github.com/llvm/llvm-project/commit/7e43483dd1699c34c5bccb56fb6c437e1682d8ad
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-04-30 (Fri, 30 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
    M llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir

  Log Message:
  -----------
  [AMDGPU] Remove set_gpr_idx instructions in conditional blocks

SIPreEmitPeephole did not try to remove redundant s_set_gpr_idx_*
instructions in blocks that end with a conditional branch instruction.
This seems like a simple oversight.

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




More information about the All-commits mailing list