[all-commits] [llvm/llvm-project] 323ef0: [AMDGPU] SIFoldOperands: eagerly erase dead REG_SE...

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Apr 19 04:07:11 PDT 2021


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

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

  Log Message:
  -----------
  [AMDGPU] SIFoldOperands: eagerly erase dead REG_SEQUENCEs

This is fairly cheap to implement and means less work for future
passes like MachineDCE.

Reapply with a fix for using InstToErase after it had been erased.

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




More information about the All-commits mailing list