diff options
author | Sanjay Patel <spatel@rotateright.com> | 2020-01-20 08:17:42 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2020-01-20 08:48:32 -0500 |
commit | da9c93f330e0e4bb12972ee7c67229c36943a0c1 (patch) | |
tree | f44eded0177366a98c0316d6ce38b76829b81408 /llvm/unittests/Support/FileCheckTest.cpp | |
parent | de34b54edce4b7b4e4a68a02fae10283b3e2d7ea (diff) | |
download | llvm-da9c93f330e0e4bb12972ee7c67229c36943a0c1.zip llvm-da9c93f330e0e4bb12972ee7c67229c36943a0c1.tar.gz llvm-da9c93f330e0e4bb12972ee7c67229c36943a0c1.tar.bz2 |
[InstSimplify] fold select of vector constants that include undef elements
As mentioned in D72643, we'd like to be able to assert that any select
of equivalent constants has been removed before we're deep into InstCombine.
But there's a loophole in that assertion for vectors with undef elements
that don't match exactly.
This patch should close that gap. If we have undefs, we can't safely
propagate those unless both constants elements for that lane are undef.
Differential Revision: https://reviews.llvm.org/D72958
Diffstat (limited to 'llvm/unittests/Support/FileCheckTest.cpp')
0 files changed, 0 insertions, 0 deletions