[PATCH] D36287: [SimplifyCFG] Simplify based on a dominating condition (looking past hammocks and diamonds).

Chad Rosier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 09:41:54 PDT 2017


mcrosier added a comment.

In https://reviews.llvm.org/D36287#831132, @efriedma wrote:

> We already have a couple other passes which can do optimize your testcase (JumpThreading and GVN); what do we gain from doing this analysis here specifically?


Just to follow up on your question, Eli.  I suspect the fact that SimplifyCFG runs more frequently than JT and GVN result in a few additional cases being captured (perhaps cases exposed after JT/GVN).  However, I honestly haven't done the full investigation to get a definitive answer.  Again, this is just derivative work and I'm not particularly set on getting this committed.


https://reviews.llvm.org/D36287





More information about the llvm-commits mailing list