Fix using wrong result type for setcc.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 7 May 2014 18:26:58 +0000 (18:26 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 7 May 2014 18:26:58 +0000 (18:26 +0000)
commitad4e6970a194fa1491b05e657a8e8e22b024fe92
treebed7b337715a2b9beeb241f3ef24689d75c8e067
parentbbad52193edebfd4faff27a85d20bf0e29cb47c0
Fix using wrong result type for setcc.

When reducing the bitwidth of a comparison against a constant, the
original setcc's result type was used, which was incorrect.

No test since I don't think any other in tree targets change the
bitwidth of the setcc type depending on the bitwidth of the compared
type.

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