This is an archive of the discontinued LLVM Phabricator instance.

[AST] Only store the needed data in WhileStmt.
ClosedPublic

Authored by riccibruno on Oct 25 2018, 10:10 AM.

Details

Summary

Don't store the data for the condition variable if not needed.
This cuts the size of WhileStmt by up to a pointer.
The order of the children is kept the same.

Diff Detail

Repository
rL LLVM

Event Timeline

riccibruno created this revision.Oct 25 2018, 10:10 AM
riccibruno added a reviewer: rsmith.

Add a flag to the output of -ast-dump indicating which sub-statement
a WhileStmt is storing.

rjmccall accepted this revision.Oct 26 2018, 4:20 PM

LGTM.

This revision is now accepted and ready to land.Oct 26 2018, 4:20 PM
This revision was automatically updated to reflect the committed changes.