SelectionDAG: Don't use MVT::Other to determine legality of ISD::SELECT_CC
authorTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 16:01:29 +0000 (16:01 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 16:01:29 +0000 (16:01 +0000)
commit102d0f3e3f108fec94cf998e2b1bb2fcf50657c3
tree58504b0677a111c6b85a3a6fc571800a2b575bbb
parentc23f0e1e446426190f563fcb89ef644927f7f438
SelectionDAG: Don't use MVT::Other to determine legality of ISD::SELECT_CC

The SelectionDAG bad a special case for ISD::SELECT_CC, where it would
allow targets to specify:

setOperationAction(ISD::SELECT_CC, MVT::Other, Expand);

to indicate that they wanted to expand ISD::SELECT_CC for all types.
This wasn't applied correctly everywhere, and it makes writing new
DAG patterns with ISD::SELECT_CC difficult.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/XCore/XCoreISelLowering.cpp
test/CodeGen/Mips/selectcc.ll