Hi,

this patch does the same thing (disables IPA-CP for nodes marked as
tm_clone) for the same reason as described in the previous mail but
for the 4.9 branch.

I've confirmed it fixes the PR failure and passes bootstrap and
testing on x86_64-linux.  OK for 4.9?

Thanks,

Martin


2014-06-04  Martin Jambor  <mjam...@suse.cz>

        PR ipa/61393
        * ipa-cp.c (determine_versionability): Pretend that tm_clones are
        not versionable.

diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 7fb7ae6..93b60d6 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -433,6 +433,8 @@ determine_versionability (struct cgraph_node *node)
   else if (!opt_for_fn (node->decl, optimize)
           || !opt_for_fn (node->decl, flag_ipa_cp))
     reason = "non-optimized function";
+  else if (node->tm_clone)
+    reason = "transactional memory clone";
   else if (lookup_attribute ("omp declare simd", DECL_ATTRIBUTES (node->decl)))
     {
       /* Ideally we should clone the SIMD clones themselves and create

Reply via email to