[all-commits] [llvm/llvm-project] 9adf30: llvm-reduce: Change function return types if funct...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri May 2 07:17:52 PDT 2025
Branch: refs/heads/users/arsenm/llvm-reduce/rewrite-function-return-types-no-call-uses
Home: https://github.com/llvm/llvm-project
Commit: 9adf304e5f1a94ba0555f58cd991c2bc21d61127
https://github.com/llvm/llvm-project/commit/9adf304e5f1a94ba0555f58cd991c2bc21d61127
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
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: 422a1bb4854bf8b292a758f5ed7f97168f5afe3f
https://github.com/llvm/llvm-project/commit/422a1bb4854bf8b292a758f5ed7f97168f5afe3f
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-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix multiple return case
Commit: 032d052f12439a2524433155ee1582063054c68e
https://github.com/llvm/llvm-project/commit/032d052f12439a2524433155ee1582063054c68e
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-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix return attributes
Commit: 6838bdc0dbab4da4c8107753f4f4c9bc9c38d40f
https://github.com/llvm/llvm-project/commit/6838bdc0dbab4da4c8107753f4f4c9bc9c38d40f
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-values-to-return-new-return-type.ll
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Fix returned attr
Commit: 07008f3a7941f709e4174ef44850a054ae3f45b0
https://github.com/llvm/llvm-project/commit/07008f3a7941f709e4174ef44850a054ae3f45b0
Author: Matt Arsenault <arsenm2 at gmail.com>
Date: 2025-05-02 (Fri, 02 May 2025)
Changed paths:
M llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp
Log Message:
-----------
Update ReduceValuesToReturn.cpp
Compare: https://github.com/llvm/llvm-project/compare/19ec5ce9620d...07008f3a7941
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