This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Change `transfer` function to update lattice element in place.
ClosedPublic

Authored by ymandel on Jan 7 2022, 11:45 AM.

Details

Summary

Currently, the transfer function returns a new lattice element, which forces an
unnecessary copy on processing each CFG statement.

Diff Detail

Event Timeline

ymandel requested review of this revision.Jan 7 2022, 11:45 AM
ymandel created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2022, 11:45 AM
sgatev accepted this revision.Jan 9 2022, 11:13 PM
sgatev added inline comments.
clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp
167

nit: let's call this E for consistency.

This revision is now accepted and ready to land.Jan 9 2022, 11:13 PM
ymandel updated this revision to Diff 398612.Jan 10 2022, 6:25 AM

address comments

This revision was landed with ongoing or failed builds.Jan 10 2022, 6:46 AM
This revision was automatically updated to reflect the committed changes.