[all-commits] [llvm/llvm-project] bb8e02: llvm-reduce: improve basic-blocks removal pass

markuslavin via All-commits all-commits at lists.llvm.org
Tue May 24 00:53:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb8e02325ffc96d4a3a21aa9eefabb8bd205b214
      https://github.com/llvm/llvm-project/commit/bb8e02325ffc96d4a3a21aa9eefabb8bd205b214
  Author: Markus Lavin <markus.lavin at ericsson.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    A llvm/test/tools/llvm-reduce/remove-bbs-sequence.ll
    A llvm/test/tools/llvm-reduce/remove-bbs-sequence.py
    M llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp

  Log Message:
  -----------
  llvm-reduce: improve basic-blocks removal pass

When the single branch target of a block has been removed try updating
it to target a  block that is kept (by scanning forward in the sequence)
instead of replacing the branch with a return instruction. Doing so
reduces the risk of breaking loop structures meaning that when the loop
is 'interesting' these reductions should have more blocks eliminated.

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




More information about the All-commits mailing list