[all-commits] [llvm/llvm-project] 8826cb: llvm-reduce: Change function return types if funct...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Apr 2 00:44:39 PDT 2025
Branch: refs/heads/users/arsenm/llvm-reduce/rewrite-function-return-types-no-call-uses
Home: https://github.com/llvm/llvm-project
Commit: 8826cbf1cceed6078d1cecbc12e3061d91924bd2
https://github.com/llvm/llvm-project/commit/8826cbf1cceed6078d1cecbc12e3061d91924bd2
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: 8a124ab44cfc380367ce567df5a557eecf6d21ce
https://github.com/llvm/llvm-project/commit/8a124ab44cfc380367ce567df5a557eecf6d21ce
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: 081cb94bb7fa22bcf72943291b400f61838699b0
https://github.com/llvm/llvm-project/commit/081cb94bb7fa22bcf72943291b400f61838699b0
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: 4baf45bdef2c7b61d12261db58a0df5a41f4e6b4
https://github.com/llvm/llvm-project/commit/4baf45bdef2c7b61d12261db58a0df5a41f4e6b4
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/a413a5294d82...4baf45bdef2c
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