SelectionDAG: Try to expand all condition codes using getCCSwappedOperands()
authorTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:38 +0000 (02:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 28 Sep 2013 02:50:38 +0000 (02:50 +0000)
commit12d43f9baf83b6a2cc444c89bb688ebfe01a9fa1
treeef5010d5f1100fe3fb7485091b7ad8747cee080d
parent8a9879a4481667b18eee4a0f8b254b3810878539
SelectionDAG: Try to expand all condition codes using getCCSwappedOperands()

This is useful for targets like R600, which only support GT, GE, NE, and EQ
condition codes as it removes the need to handle unsupported condition
codes in target specific code.

There are no tests with this commit, but R600 has been updated to take
advantage of this new feature, so its existing selectcc tests are now
testing the swapped operands path.

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