SelectionDAG: Clean up LegalizeSetCCCondCode() function
authorTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:32 +0000 (02:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:32 +0000 (02:50 +0000)
commit8a9879a4481667b18eee4a0f8b254b3810878539
tree46bcefbeb3a0963de9e6c6e2c3fdc82d07369f8b
parentba1bc60542a1a4c7ade1a563465328a3fdde1fc7
SelectionDAG: Clean up LegalizeSetCCCondCode() function

Interpreting the results of this function is not very intuitive, so I
cleaned it up to make it more clear whether or not a SETCC op was
legalized and how it was legalized (either by swapping LHS and RHS or
replacing with AND/OR).

This patch does change functionality in the LHS and RHS swapping case,
but unfortunately there are no in-tree tests for this.  However, this
patch is a prerequisite for R600 to take advantage of the LHS and RHS
swapping, so tests will be added in subsequent commits.

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