How is the 'StripDebugInfo' pass used today?

i noticed there is this 'StripDebugInfo' pass in the repo, but after a bit of searching, it's not clear to me if it's actually used by anything. i found these references to it via GitHub search, including this utility script for 'generating pipeline json descriptors', which seems to hint that something in CI might depend on it, but it's not entirely clear. does anyone know any more details about this? the related questions it brings to mind:

  1. if the code is unused can/should it be removed?
  2. if the code is still used, could it be ported to be a Swift pass?
  3. is the 'pass-pipeline' utility still used, and if so where can i learn more about that?

This pass is not used in the compiler. We can remove it

2 Likes

thanks for the confirmation! proposed removal is here: [NFC][SILOptimizer]: remove seemingly unused StripDebugInfo pass by jamieQ · Pull Request #85029 · swiftlang/swift · GitHub

2 Likes