On Sun, Jul 30, 2017 at 12:04 PM, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > > It's was draft/temptative patch for -rc5. > Thanks for the clarification. > > Please don't, I'm still working on it. Of course, I don't apply it now. I will wait for your git pull to apply. > I don't like at all this situation also. > The problem is quite complex and deep. > > This patch seems to solve the problem and (at least something > similar) is needed but my first analysis was also right and thus something > similar is still needed for simplify_branch_branch(). > > Also, the revert would not be a good solution because it would > only avoid to trigger the problem on this input but won't solve anything. I totally agree. The revert is temporary bandage to buy us more time to fix the real problem. That is well understood. We still have the question to answer will RC5 and follow up official release have the revert or not. Currently I am leaning towards keep the revert for this release but I can be convinced otherwise. > The problem is unrelated to undefined *var* but these wrong branch > simplification bypass some pseudo definition which, in a way, > become undefined on some paths which then create the problem > you saw with setne %r11, %r11, 0 Yes, we all know "setne %r11, %r11, 0" is the big offender. We just don't have a clear picture why it get there. > Well, I don't see things exactly the same. > For me, there is a code base, there are bugs in the code, > we discover the bugs and we fix them. Sorry that came out wrong, I mean to said there is some more deeper issue. > But yes, this is quite annoying, especially with try_to_simplify_bb() > on which I already spend many hours on it. I also spend many hours on it haven't able to crack it yet. The best I can do is make it simplify the original huge test input as a much smaller test case. "Help me, Obi-Wan Kenobi. You're my only hope." > The two big things that need to be fixed regarding optimization are: > - the placement of the phi-node > - associate each phi's source to the phi-node's parent > (Linus may object on this, he at least objected 10 years ago) We will revisit this after the release. I have my wish list as well. Right now let's solve this bug first. At least come to a decision what to do with it on the upcoming release. Chris -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html