diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-07-02 16:05:11 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-07-02 16:05:11 +0000 |
commit | b51e072d358b8936034e22327cdf20105f7a4654 (patch) | |
tree | ed2c98c5760714e5036e6c488600e9d14d01ccc4 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 7d263c1a2782ade7e2465e4dbb988f0a864827cb (diff) | |
download | llvm-b51e072d358b8936034e22327cdf20105f7a4654.zip llvm-b51e072d358b8936034e22327cdf20105f7a4654.tar.gz llvm-b51e072d358b8936034e22327cdf20105f7a4654.tar.bz2 |
[InstCombine] fix crash when folding cmp+bswap vector
We assumed the constant was a scalar when creating the replacement operand.
Also, improve tests for this fold and move the tests for this fold to their own file.
I'll move the related and missing tests to this file as a follow-up.
llvm-svn: 306985
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions