From: Jan Hubicka Date: Tue, 22 Sep 2020 20:36:01 +0000 (+0200) Subject: Ignore clobbers in modref X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cfb06b61bc559d94f57914826bac2f34abbd357;p=gcc.git Ignore clobbers in modref * ipa-modref.c (analyze_stmt): Ignore gimple clobber. --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index d195354e927..fe277d88a16 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -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);