[PATCH] D32293: InstructionSimplify: Simplify a shuffle with a undef mask to undef

Jonathan Roelofs via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 07:53:15 PDT 2017


jroelofs added a comment.

We are not allowed to fold `(select undef x y)` -> `undef`, but we can fold `(select undef x y)` to `x` or to `y`. Likewise, I think this transformation needs to be `(shufflevector x y undef)` -> `x`.


Repository:
  rL LLVM

https://reviews.llvm.org/D32293





More information about the llvm-commits mailing list