Lines Matching refs:MachineNode

3485       MachineSDNode *MachineNode = dyn_cast<MachineSDNode>(&Node);  in PeepholeCROps()  local
3486 if (!MachineNode || MachineNode->use_empty()) in PeepholeCROps()
3488 SDNode *ResNode = MachineNode; in PeepholeCROps()
3495 unsigned Opcode = MachineNode->getMachineOpcode(); in PeepholeCROps()
3506 SDValue Op = MachineNode->getOperand(1); in PeepholeCROps()
3530 SDValue Op = MachineNode->getOperand(0); in PeepholeCROps()
3548 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3550 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3553 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3556 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3559 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3563 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3564 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3565 MachineNode->getOperand(0). in PeepholeCROps()
3569 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3570 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3571 MachineNode->getOperand(1). in PeepholeCROps()
3573 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3574 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3575 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3576 MachineNode->getOperand(1)), in PeepholeCROps()
3580 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3582 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3583 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3584 MachineNode->getOperand(0)); in PeepholeCROps()
3587 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3588 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3589 MachineNode->getOperand(1)); in PeepholeCROps()
3592 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3593 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3594 MachineNode->getOperand(0)); in PeepholeCROps()
3597 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3601 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3602 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3604 MachineNode->getOperand(1)); in PeepholeCROps()
3607 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3608 MVT::i1, MachineNode->getOperand(1). in PeepholeCROps()
3610 MachineNode->getOperand(0)); in PeepholeCROps()
3611 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3612 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3613 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3614 MachineNode->getOperand(1)), in PeepholeCROps()
3618 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3620 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3623 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3627 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3630 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3633 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3634 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3635 MachineNode->getOperand(0). in PeepholeCROps()
3639 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3640 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3641 MachineNode->getOperand(1). in PeepholeCROps()
3643 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3644 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3645 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3646 MachineNode->getOperand(1)), in PeepholeCROps()
3650 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3652 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3656 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3657 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3658 MachineNode->getOperand(1)); in PeepholeCROps()
3661 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3662 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3663 MachineNode->getOperand(0)); in PeepholeCROps()
3666 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3669 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3672 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3673 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3675 MachineNode->getOperand(1)); in PeepholeCROps()
3678 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3679 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3680 MachineNode->getOperand(1). in PeepholeCROps()
3682 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3683 ResNode = CurDAG->getMachineNode(PPC::CREQV, SDLoc(MachineNode), in PeepholeCROps()
3684 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3685 MachineNode->getOperand(1)), in PeepholeCROps()
3691 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3695 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3696 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3697 MachineNode->getOperand(1)); in PeepholeCROps()
3700 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3701 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3702 MachineNode->getOperand(0)); in PeepholeCROps()
3705 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3706 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3708 MachineNode->getOperand(1)); in PeepholeCROps()
3711 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3712 MVT::i1, MachineNode->getOperand(1). in PeepholeCROps()
3714 MachineNode->getOperand(0)); in PeepholeCROps()
3715 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3716 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3717 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3718 MachineNode->getOperand(1)), in PeepholeCROps()
3722 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3724 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3728 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3731 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3734 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3735 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3736 MachineNode->getOperand(1)); in PeepholeCROps()
3739 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3740 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3741 MachineNode->getOperand(0)); in PeepholeCROps()
3744 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3745 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3747 MachineNode->getOperand(1)); in PeepholeCROps()
3750 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3751 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3752 MachineNode->getOperand(1). in PeepholeCROps()
3754 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3755 ResNode = CurDAG->getMachineNode(PPC::CRXOR, SDLoc(MachineNode), in PeepholeCROps()
3756 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3757 MachineNode->getOperand(1)), in PeepholeCROps()
3761 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3763 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3767 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3768 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3769 MachineNode->getOperand(1)); in PeepholeCROps()
3772 ResNode = CurDAG->getMachineNode(PPC::CRUNSET, SDLoc(MachineNode), in PeepholeCROps()
3776 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3779 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3780 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3782 MachineNode->getOperand(1)); in PeepholeCROps()
3785 ResNode = CurDAG->getMachineNode(PPC::CRAND, SDLoc(MachineNode), in PeepholeCROps()
3786 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3787 MachineNode->getOperand(1). in PeepholeCROps()
3789 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3790 ResNode = CurDAG->getMachineNode(PPC::CRORC, SDLoc(MachineNode), in PeepholeCROps()
3791 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3792 MachineNode->getOperand(0)), in PeepholeCROps()
3796 if (MachineNode->getOperand(0) == MachineNode->getOperand(1)) in PeepholeCROps()
3798 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3802 ResNode = CurDAG->getMachineNode(PPC::CRSET, SDLoc(MachineNode), in PeepholeCROps()
3806 ResNode = MachineNode->getOperand(0).getNode(); in PeepholeCROps()
3809 ResNode = CurDAG->getMachineNode(PPC::CRNOR, SDLoc(MachineNode), in PeepholeCROps()
3810 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3811 MachineNode->getOperand(1)); in PeepholeCROps()
3814 ResNode = CurDAG->getMachineNode(PPC::CRNAND, SDLoc(MachineNode), in PeepholeCROps()
3815 MVT::i1, MachineNode->getOperand(0). in PeepholeCROps()
3817 MachineNode->getOperand(1)); in PeepholeCROps()
3820 ResNode = CurDAG->getMachineNode(PPC::CROR, SDLoc(MachineNode), in PeepholeCROps()
3821 MVT::i1, MachineNode->getOperand(0), in PeepholeCROps()
3822 MachineNode->getOperand(1). in PeepholeCROps()
3824 else if (AllUsersSelectZero(MachineNode)) in PeepholeCROps()
3825 ResNode = CurDAG->getMachineNode(PPC::CRANDC, SDLoc(MachineNode), in PeepholeCROps()
3826 MVT::i1, MachineNode->getOperand(1), in PeepholeCROps()
3827 MachineNode->getOperand(0)), in PeepholeCROps()
3842 ResNode = MachineNode->getOperand(1).getNode(); in PeepholeCROps()
3844 ResNode = MachineNode->getOperand(2).getNode(); in PeepholeCROps()
3846 ResNode = CurDAG->getMachineNode(MachineNode->getMachineOpcode(), in PeepholeCROps()
3847 SDLoc(MachineNode), in PeepholeCROps()
3848 MachineNode->getValueType(0), in PeepholeCROps()
3849 MachineNode->getOperand(0). in PeepholeCROps()
3851 MachineNode->getOperand(2), in PeepholeCROps()
3852 MachineNode->getOperand(1)); in PeepholeCROps()
3859 SDLoc(MachineNode), in PeepholeCROps()
3861 MachineNode->getOperand(0). in PeepholeCROps()
3863 MachineNode->getOperand(1), in PeepholeCROps()
3864 MachineNode->getOperand(2)); in PeepholeCROps()
3872 SwapAllSelectUsers(MachineNode); in PeepholeCROps()
3874 if (ResNode != MachineNode) { in PeepholeCROps()
3876 DEBUG(MachineNode->dump(CurDAG)); in PeepholeCROps()
3881 ReplaceUses(MachineNode, ResNode); in PeepholeCROps()