Uploaded image for project: 'Swift'
  1. Swift
  2. SR-9466

Redo AssignInst lowering in DI

    XMLWordPrintable

    Details

      Description

      As a follow-up to https://github.com/apple/swift/pull/21160, we should change DI to not do AssignInst lowering itself.

      Instead, amend AssignInst with an initialization kind, either Unknown, Init, Reinit or Assign. New AssignInsts emitted by SILGen begin as Unknown. DI sets them to Init, Reinit or Assign. Then the RawSILInstructionLowering pass rewrites them as follows:

      • Init becomes a StoreInst Init
      • Reinit becomes a LoadInst, DeallocRefInst, and StoreInst
      • Assign becomes a StoreInst Assign

        Attachments

          Activity

            People

            • Assignee:
              slavapestov Slava Pestov
              Reporter:
              slavapestov Slava Pestov
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: