Ignore clobbers in modref

* ipa-modref.c (analyze_stmt): Ignore gimple clobber.
This commit is contained in:
Jan Hubicka 2020-09-22 22:36:01 +02:00
parent d6587211c0
commit 5cfb06b61b

View 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);