Lines Matching refs:MachineNode
3383 MachineSDNode *MachineNode = dyn_cast<MachineSDNode>(I); in PeepholeCROps() local
3384 if (!MachineNode || MachineNode->use_empty()) in PeepholeCROps()
3386 SDNode *ResNode = MachineNode; in PeepholeCROps()
3393 unsigned Opcode = MachineNode->getMachineOpcode(); in PeepholeCROps()
3404 SDValue Op = MachineNode->getOperand(1); in PeepholeCROps()
3427 SDValue Op = MachineNode->getOperand(0); in PeepholeCROps()
3445 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3447 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3450 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3453 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3456 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3460 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3461 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3462 MachineNode->getOperand(0). in PeepholeCROps()
3466 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3467 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3468 MachineNode->getOperand(1). in PeepholeCROps()
3470 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3471 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3472 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3473 MachineNode->getOperand(1)), in PeepholeCROps()
3477 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3479 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3480 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3481 MachineNode->getOperand(0)); in PeepholeCROps()
3484 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3485 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3486 MachineNode->getOperand(1)); in PeepholeCROps()
3489 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3490 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3491 MachineNode->getOperand(0)); in PeepholeCROps()
3494 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3498 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3499 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3501 MachineNode->getOperand(1)); in PeepholeCROps()
3504 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3505 MVT::i1, MachineNode->getOperand(1). in PeepholeCROps()
3507 MachineNode->getOperand(0)); in PeepholeCROps()
3508 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3509 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3510 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3511 MachineNode->getOperand(1)), in PeepholeCROps()
3515 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3517 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3520 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3524 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3527 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3530 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3531 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3532 MachineNode->getOperand(0). in PeepholeCROps()
3536 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3537 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3538 MachineNode->getOperand(1). in PeepholeCROps()
3540 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3541 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3542 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3543 MachineNode->getOperand(1)), in PeepholeCROps()
3547 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3549 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3553 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3554 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3555 MachineNode->getOperand(1)); in PeepholeCROps()
3558 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3559 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3560 MachineNode->getOperand(0)); in PeepholeCROps()
3563 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3566 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3569 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3570 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3572 MachineNode->getOperand(1)); in PeepholeCROps()
3575 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3576 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3577 MachineNode->getOperand(1). in PeepholeCROps()
3579 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3580 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3581 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3582 MachineNode->getOperand(1)), in PeepholeCROps()
3588 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3592 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3593 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3594 MachineNode->getOperand(1)); in PeepholeCROps()
3597 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3598 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3599 MachineNode->getOperand(0)); in PeepholeCROps()
3602 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3603 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3605 MachineNode->getOperand(1)); in PeepholeCROps()
3608 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3609 MVT::i1, MachineNode->getOperand(1). in PeepholeCROps()
3611 MachineNode->getOperand(0)); in PeepholeCROps()
3612 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3613 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3614 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3615 MachineNode->getOperand(1)), in PeepholeCROps()
3619 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3621 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3625 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3628 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3631 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3632 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3633 MachineNode->getOperand(1)); in PeepholeCROps()
3636 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3637 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3638 MachineNode->getOperand(0)); in PeepholeCROps()
3641 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3642 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3644 MachineNode->getOperand(1)); in PeepholeCROps()
3647 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3648 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3649 MachineNode->getOperand(1). in PeepholeCROps()
3651 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3652 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3653 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3654 MachineNode->getOperand(1)), in PeepholeCROps()
3658 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3660 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3664 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3665 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3666 MachineNode->getOperand(1)); in PeepholeCROps()
3669 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3673 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3676 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3677 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3679 MachineNode->getOperand(1)); in PeepholeCROps()
3682 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3683 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3684 MachineNode->getOperand(1). in PeepholeCROps()
3686 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3687 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3688 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3689 MachineNode->getOperand(0)), in PeepholeCROps()
3693 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3695 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3699 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3703 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3706 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3707 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3708 MachineNode->getOperand(1)); in PeepholeCROps()
3711 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3712 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3714 MachineNode->getOperand(1)); in PeepholeCROps()
3717 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3718 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3719 MachineNode->getOperand(1). in PeepholeCROps()
3721 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3722 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3723 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3724 MachineNode->getOperand(0)), in PeepholeCROps()
3738 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3740 ResNode = MachineNode->getOperand(2).getNode(); in PeepholeCROps()
3742 ResNode = CurDAG->getMachineNode(MachineNode->getMachineOpcode(), in PeepholeCROps()
3743 SDLoc(MachineNode), in PeepholeCROps()
3744 MachineNode->getValueType(0), in PeepholeCROps()
3745 MachineNode->getOperand(0). in PeepholeCROps()
3747 MachineNode->getOperand(2), in PeepholeCROps()
3748 MachineNode->getOperand(1)); in PeepholeCROps()
3755 SDLoc(MachineNode), in PeepholeCROps()
3757 MachineNode->getOperand(0). in PeepholeCROps()
3759 MachineNode->getOperand(1), in PeepholeCROps()
3760 MachineNode->getOperand(2)); in PeepholeCROps()
3768 SwapAllSelectUsers(MachineNode); in PeepholeCROps()
3770 if (ResNode != MachineNode) { in PeepholeCROps()
3772 DEBUG(MachineNode->dump(CurDAG)); in PeepholeCROps()
3777 ReplaceUses(MachineNode, ResNode); in PeepholeCROps()