[PATCH] D21190: [InstCombine] allow more than one use for vector cast folding with selects

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 12:18:31 PDT 2016


spatel added a comment.

In http://reviews.llvm.org/D21190#453695, @eli.friedman wrote:

> Is it possible that this could cause an infinite loop in instcombine?  Previously, this transform always reduced the total number of bitcasts in the function, but this doesn't.  (Consider the case where the select uses its own result.)


Sorry for not seeing it - the select uses its own result via a phi? Can you show the construct that you have in mind?


http://reviews.llvm.org/D21190





More information about the llvm-commits mailing list