diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-12-02 10:52:00 +0100 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-12-02 10:52:00 +0100 |
commit | ec26ee055fedcc1911039a01888bbeca69c31f00 (patch) | |
tree | 1bfe457eae114d56e0e7ebede1ca9270164e2ba2 | |
parent | 298cd0f3606f0cba028eca7cacaee70c53b93a65 (diff) |
whitelisted
-rw-r--r-- | gcc/ipa-type-escape-analysis.c | 3 | ||||
-rw-r--r-- | gcc/ipa-type-escape-analysis.h | 8 |
2 files changed, 3 insertions, 8 deletions
diff --git a/gcc/ipa-type-escape-analysis.c b/gcc/ipa-type-escape-analysis.c index a39d6f39f16..bd8901d9156 100644 --- a/gcc/ipa-type-escape-analysis.c +++ b/gcc/ipa-type-escape-analysis.c @@ -451,8 +451,7 @@ lto_dead_field_elimination () } detected_incompatible_syntax = false; hash_map<tree, bool> *whitelisted2 = get_whitelisted_nodes2 (); - std::map<tree, bool> whitelisted = get_whitelisted_nodes (); - gcc_assert(compare_stdmap_vs_hashmap(whitelisted2, whitelisted)); + std::map<tree, bool> whitelisted; tpartitions_t escaping_nonescaping_sets = partition_types_into_escaping_nonescaping (whitelisted, whitelisted2); if (detected_incompatible_syntax) return; diff --git a/gcc/ipa-type-escape-analysis.h b/gcc/ipa-type-escape-analysis.h index 15e54c7af6e..92641092824 100644 --- a/gcc/ipa-type-escape-analysis.h +++ b/gcc/ipa-type-escape-analysis.h @@ -907,7 +907,7 @@ private: class expr_escaper : public expr_walker { public: - expr_escaper (tpartitions_t &types, std::map<tree, bool> &whitelisted, hash_map<tree, bool> *whitelisted2) : _type_escaper (types), _whitelisted(whitelisted), _whitelisted2(whitelisted2) + expr_escaper (tpartitions_t &types, std::map<tree, bool> &whitelisted, hash_map<tree, bool> *whitelisted2) : _type_escaper (types), _whitelisted2(whitelisted2) {}; /* Main interface: T escapes because R. */ @@ -918,8 +918,6 @@ public: hash_map<tree, bool> *_whitelisted2; - std::map<tree, bool> &_whitelisted; - /* Holds the end result. */ tpartitions_t get_sets (); @@ -1092,13 +1090,11 @@ protected: class gimple_caster : public gimple_escaper { public: - gimple_caster (tpartitions_t &types, std::map<tree, bool> &whitelisted, hash_map<tree, bool> *whitelisted2) : gimple_escaper (types, whitelisted, whitelisted2), _whitelisted(whitelisted), _whitelisted2(whitelisted2) + gimple_caster (tpartitions_t &types, std::map<tree, bool> &whitelisted, hash_map<tree, bool> *whitelisted2) : gimple_escaper (types, whitelisted, whitelisted2), _whitelisted2(whitelisted2) {}; private: - std::map<tree, bool> &_whitelisted; - hash_map<tree, bool> *_whitelisted2; /* Determine if cast comes from a known function. */ |