[PATCH] D37762: [InstCombine] Remove single use restriction from InstCombine's explicit sinking code.

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 02:14:18 PDT 2017


hfinkel added a comment.

In https://reviews.llvm.org/D37762#868790, @davide wrote:

> I think what matters in this case is the {post}dominance relation between the block of the DEF and the block(s) [potentially > 1] of the USEs.
>  Doing this xform when all the uses are in the same block, is, correct, but restrictive. So, I think your logic is fine, but this makes me still less convinced that we shouldn't use the dom to drive this analysis (and therefore should be a separate pass :)


Do we see any performance effects from removing this entirely? It's not immediately obvious to me what this enables. Maybe SimplifyCFG later removes some blocks as empty? I don't see why anything in InstCombine would care.


https://reviews.llvm.org/D37762





More information about the llvm-commits mailing list