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()
542 SwapEntry.VSEId = SwapVector.size(); in addSwapEntry()
543 SwapVector.push_back(SwapEntry); in addSwapEntry()
574 SwapVector[VecIdx].MentionsPhysVR = 1; in lookThruCopyLike()
592 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in formWebs()
594 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in formWebs()
596 LLVM_DEBUG(dbgs() << "\n" << SwapVector[EntryIdx].VSEId << " "); in formWebs()
613 SwapVector[EntryIdx].MentionsPhysVR = 1; in formWebs()
624 (void)EC->unionSets(SwapVector[DefIdx].VSEId, in formWebs()
625 SwapVector[EntryIdx].VSEId); in formWebs()
628 SwapVector[DefIdx].VSEId, in formWebs()
629 SwapVector[EntryIdx].VSEId)); in formWebs()
644 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in recordUnoptimizableWebs()
645 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in recordUnoptimizableWebs()
648 if (SwapVector[Repr].WebRejected) in recordUnoptimizableWebs()
654 if (SwapVector[EntryIdx].MentionsPhysVR || in recordUnoptimizableWebs()
655 SwapVector[EntryIdx].MentionsPartialVR || in recordUnoptimizableWebs()
656 !(SwapVector[EntryIdx].IsSwappable || SwapVector[EntryIdx].IsSwap)) { in recordUnoptimizableWebs()
658 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
665 LLVM_DEBUG(SwapVector[EntryIdx].VSEMI->dump()); in recordUnoptimizableWebs()
671 else if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) { in recordUnoptimizableWebs()
672 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in recordUnoptimizableWebs()
682 if (!SwapVector[UseIdx].IsSwap || SwapVector[UseIdx].IsLoad || in recordUnoptimizableWebs()
683 SwapVector[UseIdx].IsStore) { in recordUnoptimizableWebs()
685 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
699 if (SwapVector[UseIdx].IsSwap && !SwapVector[UseIdx].IsLoad && in recordUnoptimizableWebs()
700 !SwapVector[UseIdx].IsStore) { in recordUnoptimizableWebs()
705 if (SwapVector[UseOfUseIdx].IsStore) { in recordUnoptimizableWebs()
706 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
722 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) { in recordUnoptimizableWebs()
723 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in recordUnoptimizableWebs()
729 if (!SwapVector[DefIdx].IsSwap || SwapVector[DefIdx].IsLoad || in recordUnoptimizableWebs()
730 SwapVector[DefIdx].IsStore) { in recordUnoptimizableWebs()
732 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
748 if (SwapVector[UseIdx].VSEMI->getOpcode() != MI->getOpcode()) { in recordUnoptimizableWebs()
749 SwapVector[Repr].WebRejected = 1; in recordUnoptimizableWebs()
758 LLVM_DEBUG(SwapVector[UseIdx].VSEMI->dump()); in recordUnoptimizableWebs()
778 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in markSwapsForRemoval()
780 if (SwapVector[EntryIdx].IsLoad && SwapVector[EntryIdx].IsSwap) { in markSwapsForRemoval()
781 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
783 if (!SwapVector[Repr].WebRejected) { in markSwapsForRemoval()
784 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in markSwapsForRemoval()
789 SwapVector[UseIdx].WillRemove = 1; in markSwapsForRemoval()
796 } else if (SwapVector[EntryIdx].IsStore && SwapVector[EntryIdx].IsSwap) { in markSwapsForRemoval()
797 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
799 if (!SwapVector[Repr].WebRejected) { in markSwapsForRemoval()
800 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in markSwapsForRemoval()
804 SwapVector[DefIdx].WillRemove = 1; in markSwapsForRemoval()
810 } else if (SwapVector[EntryIdx].IsSwappable && in markSwapsForRemoval()
811 SwapVector[EntryIdx].SpecialHandling != 0) { in markSwapsForRemoval()
812 int Repr = EC->getLeaderValue(SwapVector[EntryIdx].VSEId); in markSwapsForRemoval()
814 if (!SwapVector[Repr].WebRejected) in markSwapsForRemoval()
841 switch (SwapVector[EntryIdx].SpecialHandling) { in handleSpecialSwappables()
849 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
888 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
918 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in handleSpecialSwappables()
972 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in removeSwaps()
973 if (SwapVector[EntryIdx].WillRemove) { in removeSwaps()
975 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in removeSwaps()
982 SwapVector[EntryIdx].VSEId)); in removeSwaps()
996 for (unsigned EntryIdx = 0; EntryIdx < SwapVector.size(); ++EntryIdx) { in dumpSwapVector()
998 MachineInstr *MI = SwapVector[EntryIdx].VSEMI; in dumpSwapVector()
999 int ID = SwapVector[EntryIdx].VSEId; in dumpSwapVector()
1006 if (SwapVector[EntryIdx].IsLoad) in dumpSwapVector()
1008 if (SwapVector[EntryIdx].IsStore) in dumpSwapVector()
1010 if (SwapVector[EntryIdx].IsSwap) in dumpSwapVector()
1012 if (SwapVector[EntryIdx].MentionsPhysVR) in dumpSwapVector()
1014 if (SwapVector[EntryIdx].MentionsPartialVR) in dumpSwapVector()
1017 if (SwapVector[EntryIdx].IsSwappable) { in dumpSwapVector()
1019 switch(SwapVector[EntryIdx].SpecialHandling) { in dumpSwapVector()
1049 if (SwapVector[EntryIdx].WebRejected) in dumpSwapVector()
1051 if (SwapVector[EntryIdx].WillRemove) in dumpSwapVector()