[all-commits] [llvm/llvm-project] 57fbb9: [llvm-reduce] Skip updating calls where OldF isn't...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Oct 1 02:53:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57fbb9ed0e4c9717b1106ce18f5653ce8f7136fa
      https://github.com/llvm/llvm-project/commit/57fbb9ed0e4c9717b1106ce18f5653ce8f7136fa
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-10-01 (Fri, 01 Oct 2021)

  Changed paths:
    A llvm/test/tools/llvm-reduce/remove-args-fn-passed-through-call.ll
    M llvm/tools/llvm-reduce/deltas/ReduceArguments.cpp

  Log Message:
  -----------
  [llvm-reduce] Skip updating calls where OldF isn't the called fn.

When replacing function calls, skip call instructions where the old
function is not the called function, but e.g. the old function is passed
as an argument.

This fixes a crash due to trying to construct invalid IR for the test
case.

Reviewed By: aeubanks

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




More information about the All-commits mailing list