[all-commits] [llvm/llvm-project] 0feb4b: Fix missed SI_RETURN_TO_EPILOG in pre-emit peephole

Carl Ritson via All-commits all-commits at lists.llvm.org
Wed Dec 9 08:12:20 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0feb4bc5295b373876823972d4b33e62b305cd0a
      https://github.com/llvm/llvm-project/commit/0feb4bc5295b373876823972d4b33e62b305cd0a
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
    M llvm/test/CodeGen/AMDGPU/transform-block-with-return-to-epilog.ll

  Log Message:
  -----------
  Fix missed SI_RETURN_TO_EPILOG in pre-emit peephole

SIPreEmitPeephole does not process all terminators, which means
it can fail to handle SI_RETURN_TO_EPILOG if immediately preceeded
by a branch to the early exit block.

Reviewed By: rampitec

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

(cherry picked from commit d538c5837a2cfedbf274133e29612da76003beed)




More information about the All-commits mailing list