From 5cfb06b61bc559d94f57914826bac2f34abbd357 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 22 Sep 2020 22:36:01 +0200 Subject: [PATCH] Ignore clobbers in modref * ipa-modref.c (analyze_stmt): Ignore gimple clobber. --- gcc/ipa-modref.c | 3 +++ 1 file changed, 3 insertions(+) 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);