Lines Matching refs:SwapVector
104 std::vector<PPCVSXSwapEntry> SwapVector; member
229 SwapVector.clear(); in initialize()
230 SwapVector.reserve(InitialVectorSize); in initialize()
284 SwapVector[VecIdx].MentionsPartialVR = 1; in gatherVectorInstructions()
286 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
303 SwapVector[VecIdx].IsSwap = 1; in gatherVectorInstructions()
307 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
308 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI; in gatherVectorInstructions()
320 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
321 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI; in gatherVectorInstructions()
328 SwapVector[VecIdx].MentionsPhysVR = 0; in gatherVectorInstructions()
332 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
333 SwapVector[VecIdx].SpecialHandling = SHValues::SH_XXPERMDI; in gatherVectorInstructions()
342 SwapVector[VecIdx].IsLoad = 1; in gatherVectorInstructions()
348 SwapVector[VecIdx].IsLoad = 1; in gatherVectorInstructions()
349 SwapVector[VecIdx].IsSwap = 1; in gatherVectorInstructions()
359 SwapVector[VecIdx].IsLoad = 1; in gatherVectorInstructions()
360 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
367 SwapVector[VecIdx].IsStore = 1; in gatherVectorInstructions()
373 SwapVector[VecIdx].IsStore = 1; in gatherVectorInstructions()
374 SwapVector[VecIdx].IsSwap = 1; in gatherVectorInstructions()
381 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
388 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
400 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
403 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
404 SwapVector[VecIdx].SpecialHandling = SHValues::SH_COPYWIDEN; in gatherVectorInstructions()
414 SwapVector[VecIdx].IsSwappable = 1; in gatherVectorInstructions()
415 SwapVector[VecIdx].SpecialHandling = SHValues::SH_SPLAT; in gatherVectorInstructions()
540 SwapEntry.VSEId = SwapVector.size(); in addSwapEntry()
541 SwapVector.push_back(SwapEntry); in addSwapEntry()
572 SwapVector[VecIdx].MentionsPhysVR = 1; in lookThruCopyLike()
590 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in formWebs()
592 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in formWebs()
594 LLVM_DEBUG(dbgs() << "\n" << SwapVector[EntryIdx].VSEId << " "); in formWebs()
611 SwapVector[EntryIdx].MentionsPhysVR = 1; in formWebs()
622 (void)EC->unionSets(SwapVector[DefIdx].VSEId, in formWebs()
623 SwapVector[EntryIdx].VSEId); in formWebs()
626 SwapVector[DefIdx].VSEId, in formWebs()
627 SwapVector[EntryIdx].VSEId)); in formWebs()
642 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in recordUnoptimizableWebs()
643 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in recordUnoptimizableWebs()
646 if (SwapVector[Repr].WebRejected) in recordUnoptimizableWebs()
652 if (SwapVector[EntryIdx].MentionsPhysVR || in recordUnoptimizableWebs()
653 SwapVector[EntryIdx].MentionsPartialVR || in recordUnoptimizableWebs()
654 !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) { in recordUnoptimizableWebs()
656 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
663 LLVM_DEBUG(SwapVector[EntryIdx].VSEMI->dump()); in recordUnoptimizableWebs()
669 else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) { in recordUnoptimizableWebs()
670 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in recordUnoptimizableWebs()
680 if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad || in recordUnoptimizableWebs()
681 SwapVector[UseIdx].IsStore) { in recordUnoptimizableWebs()
683 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
697 if (SwapVector[UseIdx].IsSwap && !SwapVector[UseIdx].IsLoad && in recordUnoptimizableWebs()
698 !SwapVector[UseIdx].IsStore) { in recordUnoptimizableWebs()
703 if (SwapVector[UseOfUseIdx].IsStore) { in recordUnoptimizableWebs()
704 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
720 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) { in recordUnoptimizableWebs()
721 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in recordUnoptimizableWebs()
727 if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad || in recordUnoptimizableWebs()
728 SwapVector[DefIdx].IsStore) { in recordUnoptimizableWebs()
730 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
746 if (SwapVector[UseIdx].VSEMI->getOpcode() != MI->getOpcode()) { in recordUnoptimizableWebs()
747 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
756 LLVM_DEBUG(SwapVector[UseIdx].VSEMI->dump()); in recordUnoptimizableWebs()
776 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in markSwapsForRemoval()
778 if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) { in markSwapsForRemoval()
779 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
781 if (!SwapVector[Repr].WebRejected) { in markSwapsForRemoval()
782 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in markSwapsForRemoval()
787 SwapVector[UseIdx].WillRemove = 1; in markSwapsForRemoval()
794 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) { in markSwapsForRemoval()
795 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
797 if (!SwapVector[Repr].WebRejected) { in markSwapsForRemoval()
798 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in markSwapsForRemoval()
802 SwapVector[DefIdx].WillRemove = 1; in markSwapsForRemoval()
808 } else if (SwapVector[EntryIdx].IsSwappable && in markSwapsForRemoval()
809 SwapVector[EntryIdx].SpecialHandling != 0) { in markSwapsForRemoval()
810 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
812 if (!SwapVector[Repr].WebRejected) in markSwapsForRemoval()
839 switch (SwapVector[EntryIdx].SpecialHandling) { in handleSpecialSwappables()
847 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
886 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
916 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
970 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in removeSwaps()
971 if (SwapVector[EntryIdx].WillRemove) { in removeSwaps()
973 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in removeSwaps()
980 SwapVector[EntryIdx].VSEId)); in removeSwaps()
994 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in dumpSwapVector()
996 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in dumpSwapVector()
997 int ID = SwapVector[EntryIdx].VSEId; in dumpSwapVector()
1004 if (SwapVector[EntryIdx].IsLoad) in dumpSwapVector()
1006 if (SwapVector[EntryIdx].IsStore) in dumpSwapVector()
1008 if (SwapVector[EntryIdx].IsSwap) in dumpSwapVector()
1010 if (SwapVector[EntryIdx].MentionsPhysVR) in dumpSwapVector()
1012 if (SwapVector[EntryIdx].MentionsPartialVR) in dumpSwapVector()
1015 if (SwapVector[EntryIdx].IsSwappable) { in dumpSwapVector()
1017 switch(SwapVector[EntryIdx].SpecialHandling) { in dumpSwapVector()
1047 if (SwapVector[EntryIdx].WebRejected) in dumpSwapVector()
1049 if (SwapVector[EntryIdx].WillRemove) in dumpSwapVector()