[all-commits] [llvm/llvm-project] f4cb93: llvm-reduce: Fix invalid reductions for exceptions...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Jan 3 14:04:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4cb935ce8ade596a3f027870b8e2d90c94870ba
      https://github.com/llvm/llvm-project/commit/f4cb935ce8ade596a3f027870b8e2d90c94870ba
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    A llvm/test/tools/llvm-reduce/reduce-instructions-swifterror.ll
    A llvm/test/tools/llvm-reduce/reduce-instructions-token-preallocated.ll
    A llvm/test/tools/llvm-reduce/reduce-instructions-token.ll
    M llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
    M llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp

  Log Message:
  -----------
  llvm-reduce: Fix invalid reductions for exceptions, tokens and swifterror

Copies the same special cases that bugpoint uses. Technically the
token condition is stricter than what the verifier enforces.

Part 1 of #58815


  Commit: a455c91601a87c2452a3199a0df8390130a28e90
      https://github.com/llvm/llvm-project/commit/a455c91601a87c2452a3199a0df8390130a28e90
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    A llvm/test/tools/llvm-reduce/reduce-invoke.ll
    M llvm/tools/llvm-reduce/CMakeLists.txt
    M llvm/tools/llvm-reduce/DeltaManager.cpp
    A llvm/tools/llvm-reduce/deltas/ReduceInvokes.cpp
    A llvm/tools/llvm-reduce/deltas/ReduceInvokes.h

  Log Message:
  -----------
  llvm-reduce: Add reduction for invokes

Main thing I was unsure about was to whether try to delete the now
dead landing blocks, or leave that for the unreachable block reduction.

Personality function is not reduced, but that should be a separate
reduction on the function.

Fixes #58815


Compare: https://github.com/llvm/llvm-project/compare/84e888e5e418...a455c91601a8


More information about the All-commits mailing list