ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering of execution of...
authorJan Hubicka <hubicka@ucw.cz>
Thu, 12 Dec 2019 14:32:48 +0000 (15:32 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 12 Dec 2019 14:32:48 +0000 (14:32 +0000)
* ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
of execution of function call parameters.

From-SVN: r279306

gcc/ChangeLog
gcc/ipa-prop.c

index c9eb4224d0165f20ff5a6faa90b2302bdbd921d8..14d8dc9daec4d221dfc98652f83480179a2a8735 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-12  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-prop.c (read_ipcp_transformation_info): Fix undefined ordering
+       of execution of function call parameters.
+
 2019-12-12  Vineet Gupta  <vgupta@synopsys.com>
 
        * config/arc/arc-modes.def (CC_FPUE): New Mode CC_FPUE which
index 547c2edef47781e5904e88d62796a3dfb4701772..1a59c3554f521d9349da5dec2e44caf14812225e 100644 (file)
@@ -5227,9 +5227,10 @@ read_ipcp_transformation_info (lto_input_block *ib, cgraph_node *node,
          bool known = bp_unpack_value (&bp, 1);
          if (known)
            {
+             const widest_int value = streamer_read_widest_int (ib);
+             const widest_int mask = streamer_read_widest_int (ib);
              ipa_bits *bits
-               = ipa_get_ipa_bits_for_value (streamer_read_widest_int (ib),
-                                             streamer_read_widest_int (ib));
+               = ipa_get_ipa_bits_for_value (value, mask);
              (*ts->bits)[i] = bits;
            }
        }