Fix an issue in SimplifySetCC() specific to vector comparisons.
authorChad Rosier <mcrosier@apple.com>
Tue, 3 Apr 2012 20:11:24 +0000 (20:11 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 3 Apr 2012 20:11:24 +0000 (20:11 +0000)
commit9dbb018b36d37d9676fe70ac5d928e69ae01b7fb
tree84a04f25ba4b4efaf4b44114b39cda49f6de3c14
parent1895fc90e01c9c3f48f40d99da6ead5ee09bcea4
Fix an issue in SimplifySetCC() specific to vector comparisons.

When folding X == X we need to check getBooleanContents() to determine if the
result is a vector of ones or a vector of negative ones.

I tried creating a test case, but the problem seems to only be exposed on a
much older version of clang (around r144500).
rdar://10923049

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153966 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp