[SR-5756] Add a guaranteed partial apply elimination peephole to guaranteed passes and then simplify SILGenApply #48326
Labels
compiler
The Swift compiler in itself
improvement
performance
SILGen
Area → compiler: The SIL generation stage
Additional Detail from JIRA
md5: 1e500ef1747ae510122b49d54d21e11b
Issue Description:
Today there is logic in SILGenApply that avoids forming a closure/emitting captures in the case where we immediately call the closure locally. This adds a bunch of complexity to SILGenApply that could be removed if we took our already written partial apply elimination logic and ran it as a guaranteed peephole (perhaps in constant propagation? not sure).
Then we can eliminate this "pseudo"-uncurry code from SILGenApply simplifying SILGen!
The text was updated successfully, but these errors were encountered: