Fix gimple_clobber handling in ipa-modref
authorJan Hubicka <jh@suse.cz>
Fri, 25 Sep 2020 22:01:57 +0000 (00:01 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 25 Sep 2020 22:01:57 +0000 (00:01 +0200)
2020-09-25  Jan Hubicka  <hubicka@ucw.cz>

* ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.

gcc/ipa-modref.c

index aa6929ff0105ac64687d514f9cfa07075e46afe1..44b844b90db26449460f3c8c74d7b7e7cc114232 100644 (file)
@@ -658,7 +658,7 @@ analyze_stmt (modref_summary *summary, gimple *stmt, bool ipa)
 {
   /* There is no need to record clobbers.  */
   if (gimple_clobber_p (stmt))
-    return false;
+    return true;
   /* Analyze all loads and stores in STMT.  */
   walk_stmt_load_store_ops (stmt, summary,
                            analyze_load, analyze_store);