[all-commits] [llvm/llvm-project] 42ed38: [AMDGPU] SILowerControlFlow::removeMBBifRedundant ...

alex-t via All-commits all-commits at lists.llvm.org
Thu Oct 15 13:22:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 42ed3881200801651a2af47505dc7c59c0a5c959
      https://github.com/llvm/llvm-project/commit/42ed3881200801651a2af47505dc7c59c0a5c959
  Author: alex-t <alexander.timofeev at amd.com>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
    M llvm/test/CodeGen/AMDGPU/collapse-endcf.mir

  Log Message:
  -----------
  [AMDGPU] SILowerControlFlow::removeMBBifRedundant should not try to change MBB layout if it can fallthrough

removeMBBifRedundant normally tries to keep predecessors fallthrough when removing redundant MBB.
         It has to change MBBs layout to keep the new successor to immediately follow the predecessor of removed MBB.
         It only may be allowed in case the new successor itself has no successors to which it fall through.

Reviewed By: rampitec

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




More information about the All-commits mailing list