Fix a bug in my patch for legalizing to fsel. It cannot handle seteq/setne,

which I failed to include when I moved the code over.  This fixes
MallocBench/gs.

llvm-svn: 23140
This commit is contained in:
Chris Lattner 2005-08-30 00:45:18 +00:00
parent 61f7c3e843
commit e75b5e63a7
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ SDOperand PPC32TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
if (MVT::isFloatingPoint(Op.getOperand(0).getValueType()) &&
MVT::isFloatingPoint(Op.getOperand(2).getValueType())) {
ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(4))->get();
// Cannot handle SETEQ/SETNE.
if (CC == ISD::SETEQ || CC == ISD::SETNE) break;
MVT::ValueType ResVT = Op.getValueType();
MVT::ValueType CmpVT = Op.getOperand(0).getValueType();
SDOperand LHS = Op.getOperand(0), RHS = Op.getOperand(1);