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 aa6929f..44b844b 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);