aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2022-02-25 16:57:18 -0600
committerJohannes Doerfert <johannes@jdoerfert.de>2022-03-11 21:55:19 -0600
commitf44f60a297c69c603b3d473ca0cf0f8c06b93d32 (patch)
treeb45f4d11ddd57ebd0b80c4be732133b1e0ed57ef /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent121191cecbf1687a647967e34123f63e85228e99 (diff)
downloadllvm-f44f60a297c69c603b3d473ca0cf0f8c06b93d32.zip
llvm-f44f60a297c69c603b3d473ca0cf0f8c06b93d32.tar.gz
llvm-f44f60a297c69c603b3d473ca0cf0f8c06b93d32.tar.bz2
[Attributor] Avoid replacing return operands twice
As replacements will become more complex it is better to have a single AA responsible for replacing a use. Before this patch AAValueSimplify* and AAValueSimplifyReturned could both try to replace the returned value. The latter was marginally better for the old pass manager when a function was already carrying a `returned` attribute and when the context of the return instruction was important. The second shortcoming was resolved by looking for return attributes in the AAValueSimplifyCallSiteReturned initialization. The old PM impact is not concerning. This is yet another step towards the removal of AAReturnedValues, the very first AA we should now try to eliminate due to the overlapping logic with value simplification.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions