This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow][NFC] Convert mutable vector references to ArrayRef
ClosedPublic

Authored by li.zhe.hua on Aug 4 2022, 9:07 AM.

Details

Summary

transferBlock and computeBlockInputState only read the
BlockStates vector for the predecessor block(s), and do not need to
mutate any of the contents. Only runTypeErasedDataflowAnalysis
writes into the vector, so simply down to an ArrayRef.

Diff Detail

Event Timeline

li.zhe.hua created this revision.Aug 4 2022, 9:07 AM
Herald added a project: Restricted Project. · View Herald Transcript
li.zhe.hua requested review of this revision.Aug 4 2022, 9:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 9:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
xazax.hun accepted this revision.Aug 4 2022, 9:27 AM
This revision is now accepted and ready to land.Aug 4 2022, 9:27 AM
ymandel accepted this revision.Aug 4 2022, 9:37 AM
li.zhe.hua closed this revision.Aug 4 2022, 10:48 AM

Bah, I think I screwed up arc at some point. This was committed as 18034aee63eeac673496a88d9e90c8dd73d15927.