[all-commits] [llvm/llvm-project] a413a5: llvm-reduce: Change function return types if funct...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Apr 1 23:25:10 PDT 2025
Branch: refs/heads/users/arsenm/llvm-reduce/rewrite-function-return-types-no-call-uses
Home: https://github.com/llvm/llvm-project
Commit: a413a5294d82f0c9d87ff2b0cbd42fae9484c43f
https://github.com/llvm/llvm-project/commit/a413a5294d82f0c9d87ff2b0cbd42fae9484c43f
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
A llvm/test/tools/llvm-reduce/reduce-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
llvm-reduce: Change function return types if function is not called
Extend the early return on value reduction to mutate the function return
type if the function has no call uses. This could be generalized to rewrite
cases where all callsites are used, but it turns out that complicates the
visitation order given we try to compute all opportunities up front.
This is enough to cleanup the common case where we end up with one
function with a return of an uninteresting constant.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list