]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Ignore clobbers in modref
authorJan Hubicka <jh@suse.cz>
Tue, 22 Sep 2020 20:36:01 +0000 (22:36 +0200)
committerJan Hubicka <jh@suse.cz>
Tue, 22 Sep 2020 20:36:01 +0000 (22:36 +0200)
* ipa-modref.c (analyze_stmt): Ignore gimple clobber.

gcc/ipa-modref.c

index d195354e927a277c2874516485dc46e9ebb77d4c..fe277d88a169bcd1bf056dbf78204b5c70a5689b 100644 (file)
@@ -552,6 +552,9 @@ analyze_store (gimple *, tree, tree op, void *data)
 static bool
 analyze_stmt (modref_summary *summary, gimple *stmt, bool ipa)
 {
+  /* There is no need to record clobbers.  */
+  if (gimple_clobber_p (stmt))
+    return false;
   /* Analyze all loads and stores in STMT.  */
   walk_stmt_load_store_ops (stmt, summary,
                            analyze_load, analyze_store);