]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix coding style in IPA modref.
authorMartin Liska <mliska@suse.cz>
Wed, 31 Mar 2021 08:51:11 +0000 (10:51 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 31 Mar 2021 08:52:22 +0000 (10:52 +0200)
gcc/ChangeLog:

* ipa-modref.c (analyze_ssa_name_flags): Fix coding style
and one negated condition.

gcc/ipa-modref.c

index 5f33bb5b4104947ed420864cf76635411e25c9b5..ef5e62beb0e4d50519066cb507390f12b349e9a5 100644 (file)
@@ -1673,7 +1673,7 @@ analyze_ssa_name_flags (tree name, vec<modref_lattice> &lattice, int depth,
 
                        if (!record_ipa)
                          lattice[index].merge (call_flags);
-                       if (record_ipa)
+                       else
                          lattice[index].add_escape_point (call, i,
                                                           call_flags, true);
                      }
@@ -1691,8 +1691,8 @@ analyze_ssa_name_flags (tree name, vec<modref_lattice> &lattice, int depth,
                        int call_flags = deref_flags
                           (gimple_call_arg_flags (call, i), ignore_stores);
                        if (!record_ipa)
-                           lattice[index].merge (call_flags);
-                       if (record_ipa)
+                         lattice[index].merge (call_flags);
+                       else
                          lattice[index].add_escape_point (call, i,
                                                           call_flags, false);
                      }