[all-commits] [llvm/llvm-project] e3a81d: llvm-reduce: Change function return types if funct...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri May 2 07:20:21 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e3a81df38cb67d472d66db3e918a46bd534ea11c
https://github.com/llvm/llvm-project/commit/e3a81df38cb67d472d66db3e918a46bd534ea11c
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-05-02 (Fri, 02 May 2025)
Changed paths:
M llvm/test/tools/llvm-reduce/reduce-instructions-to-return.ll
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 (#134035)
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