Only apply the SETCC+SITOFP -> SELECTCC optimization when the SETCC returns an MVT...
authorOwen Anderson <resistor@mac.com>
Wed, 11 Jul 2012 06:38:55 +0000 (06:38 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 11 Jul 2012 06:38:55 +0000 (06:38 +0000)
commit45299995d6a1273d644d127b4aeaf4e7eb365292
tree32cb420abe49d314cea22674897d802a66dfe133
parentba584fe8feb840a82ad5966cb9eca6df0eeaafc2
Only apply the SETCC+SITOFP -> SELECTCC optimization when the SETCC returns an MVT::i1, i.e. before type legalization.
This is a speculative fix for a problem on Mips reported by Akira Hatanaka.

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