[all-commits] [llvm/llvm-project] 136c8f: [Reduce] Try turning function definitions into dec...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Sat Jul 25 11:51:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 136c8f50e96381ee9daf0ac3dbe524ba63d51560
      https://github.com/llvm/llvm-project/commit/136c8f50e96381ee9daf0ac3dbe524ba63d51560
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2020-07-25 (Sat, 25 Jul 2020)

  Changed paths:
    A llvm/test/Reduce/remove-function-bodies.ll
    M llvm/tools/llvm-reduce/CMakeLists.txt
    M llvm/tools/llvm-reduce/DeltaManager.h
    A llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.cpp
    A llvm/tools/llvm-reduce/deltas/ReduceFunctionBodies.h

  Log Message:
  -----------
  [Reduce] Try turning function definitions into declarations first, NFCI-ish

ReduceFunctions could do it, but it also replaces *all* calls with undef,
so if any of undef replacements makes reduction uninteresting,
it won't work.

ReduceBasicBlocks also could do it, but well, it may take many guesses
for all the blocks of a function to happen to be out-of-chunk,
which is not a very efficient way to go about it.

So let's just do this first.




More information about the All-commits mailing list