[PATCH] Fix continue condition in IPA-SRA's process_scan_results
authorMartin Jambor <mjambor@suse.cz>
Thu, 26 Sep 2019 10:32:45 +0000 (12:32 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 26 Sep 2019 10:32:45 +0000 (12:32 +0200)
2019-09-26  Martin Jambor  <mjambor@suse.cz>

* ipa-sra.c (process_scan_results): Fix continue condition.

From-SVN: r276143

gcc/ChangeLog
gcc/ipa-sra.c

index f876c5b9ce0208ed4add97936d5251bbc45467f6..1d73129ee2a25ec8207fe2507140238438b0f9c8 100644 (file)
@@ -1,3 +1,7 @@
+2019-09-26  Martin Jambor  <mjambor@suse.cz>
+
+       * ipa-sra.c (process_scan_results): Fix continue condition.
+
 2019-09-26  Martin Liska  <mliska@suse.cz>
 
        PR tree-optimization/91885
index 0ccebbd46072d715dacffe41943609ff067e8113..b35fff69472c8a684f5ec32160187576a77c5fed 100644 (file)
@@ -2239,7 +2239,7 @@ process_scan_results (cgraph_node *node, struct function *fun,
        desc_index++, parm = DECL_CHAIN (parm))
     {
       gensum_param_desc *desc = &(*param_descriptions)[desc_index];
-      if (!desc->locally_unused && !desc->split_candidate)
+      if (!desc->split_candidate)
        continue;
 
       if (flag_checking)