aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-19 16:48:22 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-19 16:48:22 +0000
commita3c297dba429774fb1fe54eb59ea60b07cf5c879 (patch)
tree3b6c3a53c288e9b91c672c4792aa894a135712a2 /llvm/unittests/Support/MathExtrasTest.cpp
parent8bd52286d30ee0f205e66181fe02133830f324b0 (diff)
downloadllvm-a3c297dba429774fb1fe54eb59ea60b07cf5c879.zip
llvm-a3c297dba429774fb1fe54eb59ea60b07cf5c879.tar.gz
llvm-a3c297dba429774fb1fe54eb59ea60b07cf5c879.tar.bz2
[InstSimplify] fold identity shuffles (recursing if needed)
This patch simplifies the examples from D31509 and D31927 (PR30630) and catches the basic identity shuffle tests that Zvi recently added. I'm not sure if we have something like this in DAGCombiner, but we should? It's worth noting that "MaxRecurse / RecursionLimit" is only 3 on entry at the moment. We might want to bump that up if there are longer shuffle chains like this in the wild. For now, we're ignoring shuffles that have undef mask elements because it's not clear how those should be handled. Differential Revision: https://reviews.llvm.org/D31960 llvm-svn: 300714
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions