This is an archive of the discontinued LLVM Phabricator instance.

[NFC, StackSafety] Change type of internal container
ClosedPublic

Authored by vitalybuka on May 29 2020, 3:16 PM.

Diff Detail

Event Timeline

vitalybuka created this revision.May 29 2020, 3:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2020, 3:16 PM

remove random include

eugenis added inline comments.May 29 2020, 5:15 PM
llvm/lib/Analysis/StackSafetyAnalysis.cpp
143

Why not DenseMap, do you expect this to use less memory at very small sizes?

vitalybuka marked an inline comment as done.May 29 2020, 5:36 PM
vitalybuka added inline comments.
llvm/lib/Analysis/StackSafetyAnalysis.cpp
143

DenseMap is good for small vales, key, here values are quite fat.
Also allocates container are iterated 1-2 times so they are not critical for performance.

eugenis accepted this revision.Jun 1 2020, 11:59 AM

Makes sense, LGTM.
Somehow I thought that UseInfo was a pointer...

This revision is now accepted and ready to land.Jun 1 2020, 11:59 AM
This revision was automatically updated to reflect the committed changes.

Sorry I had to revert in f9bb101d394d : this seems to be breaking gcc 5 build (hopefully I got the right patch?) See here: https://buildkite.com/mlir/mlir-core/builds/5364#d4d067e0-6acd-4754-8a3d-003fbae06695

vitalybuka reopened this revision.Jun 3 2020, 12:59 AM

Thanks.

Sorry I had to revert in f9bb101d394d : this seems to be breaking gcc 5 build (hopefully I got the right patch?) See here: https://buildkite.com/mlir/mlir-core/builds/5364#d4d067e0-6acd-4754-8a3d-003fbae06695

This revision is now accepted and ready to land.Jun 3 2020, 12:59 AM
This revision was automatically updated to reflect the committed changes.