Make fsel emission work with both the pattern and dag-dag selectors, by

giving it a non-instruction opcode.  The dag->dag selector used to not
select the operands of the fsel, because it thought that whole tree was
already selected.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-08-26 20:25:03 +00:00
parent 9fdd6e3f50
commit 0bbea95433
4 changed files with 34 additions and 14 deletions

View File

@@ -811,7 +811,7 @@ unsigned ISel::SelectExpr(SDOperand N, bool Recording) {
default:
Node->dump(); std::cerr << '\n';
assert(0 && "Node not handled!\n");
case ISD::BUILTIN_OP_END+PPC::FSEL:
case PPCISD::FSEL:
Tmp1 = SelectExpr(N.getOperand(0));
Tmp2 = SelectExpr(N.getOperand(1));
Tmp3 = SelectExpr(N.getOperand(2));