diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-05-02 16:19:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-02 16:19:58 +0200 |
commit | e3a81df38cb67d472d66db3e918a46bd534ea11c (patch) | |
tree | 2308d6d1295d9a9ed33e98da6949523352e12813 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 26bc8b0ffa4335fa18359de7c224f1460a8c102c (diff) | |
download | llvm-e3a81df38cb67d472d66db3e918a46bd534ea11c.zip llvm-e3a81df38cb67d472d66db3e918a46bd534ea11c.tar.gz llvm-e3a81df38cb67d472d66db3e918a46bd534ea11c.tar.bz2 |
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.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions