[PATCH] D32740: [PM/Unswitch] Fix a bug in the domtree update logic for the new unswitch pass.

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 23:06:49 PDT 2017


chandlerc added a comment.

In https://reviews.llvm.org/D32740#764113, @dberlin wrote:

> Over the past week or so, I think we have done enough playing around with incremental dominators at this point (and i believe jakub has working prototype code) that i feel confident enough that we can make it work, and so  i'm not worried about this patch really.
>  Maybe it's code we destroy in a few months, but it doesn't seem worth holding up progress over.
>  It obviously could turn out i'm completely wrong (IE as we bring a design to upstream and start on a non-prototype, something becomes intractable), but we can still deal with it then.


Cool.

I'm gonna land this and clear the way for some follow-up patches. I'm somewhat hopeful that I can even kill this off before we have proper updates as we'll have to recalculate the whole function's tree when doing non-trivial unswitching. But even if not, I think this is an OK stop-gap and I've got the FIXME in here to get something saner.


https://reviews.llvm.org/D32740





More information about the llvm-commits mailing list