[all-commits] [llvm/llvm-project] 51a828: [llvm-reduce] Skip terminators when reducing instr...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Aug 23 09:56:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 51a82828fb291fc8f7768711c4b769157d5f0227
      https://github.com/llvm/llvm-project/commit/51a82828fb291fc8f7768711c4b769157d5f0227
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-08-23 (Sun, 23 Aug 2020)

  Changed paths:
    A llvm/test/Reduce/do-not-remove-terminator.ll
    M llvm/test/Reduce/remove-funcs.ll
    M llvm/test/Reduce/remove-instructions.ll
    M llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp

  Log Message:
  -----------
  [llvm-reduce] Skip terminators when reducing instructions.

Removing terminators will result in invalid IR, making further
reductions pointless. I do not think there is any valid use case where
we actually want to create invalid IR as part of a reduction.

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list