[all-commits] [llvm/llvm-project] c6252c: llvm-reduce: Change function return types if funct...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Apr 2 00:51:31 PDT 2025
Branch: refs/heads/users/arsenm/llvm-reduce/rewrite-function-return-types-no-call-uses
Home: https://github.com/llvm/llvm-project
Commit: c6252c5dc0d1326a139c73a75b2a7892d0670ad0
https://github.com/llvm/llvm-project/commit/c6252c5dc0d1326a139c73a75b2a7892d0670ad0
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/test/tools/llvm-reduce/reduce-values-to-return.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.
Commit: 75841c9d2c0abe4d75b0575088013b79a26c7b57
https://github.com/llvm/llvm-project/commit/75841c9d2c0abe4d75b0575088013b79a26c7b57
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
M llvm/test/tools/llvm-reduce/reduce-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix multiple return case
Commit: 2af47b44da4217566fd6fed3d8784b68fbe22ce5
https://github.com/llvm/llvm-project/commit/2af47b44da4217566fd6fed3d8784b68fbe22ce5
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
M llvm/test/tools/llvm-reduce/reduce-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix return attributes
Commit: 54900733a4a81dc09e85e86c805190b60f550dc6
https://github.com/llvm/llvm-project/commit/54900733a4a81dc09e85e86c805190b60f550dc6
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)
Changed paths:
M llvm/test/tools/llvm-reduce/reduce-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix returned attr
Compare: https://github.com/llvm/llvm-project/compare/4baf45bdef2c...54900733a4a8
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