SelectionDAG: Improve legalization of SELECT_CC with illegal condition codes
authorTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:43 +0000 (02:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:43 +0000 (02:50 +0000)
commitbbafe422d6f9036b03992ee5eacb5d09644c3267
treeefe5783a40b4fd5822dbe84551e73f05c221265a
parent12d43f9baf83b6a2cc444c89bb688ebfe01a9fa1
SelectionDAG: Improve legalization of SELECT_CC with illegal condition codes

SelectionDAG will now attempt to inverse an illegal conditon in order to
find a legal one and if that doesn't work, it will attempt to swap the
operands using the inverted condition.

There are no new test cases for this, but a nubmer of the existing R600
tests hit this path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191602 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/Target/R600/R600ISelLowering.cpp