llvm.org GIT mirror llvm / 8d6707c
[AggressiveAntiDepBreaker] Skip some unnecessary BitVector copies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260825 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 4 years ago
1 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
562562 if (RegRefs.count(Reg) > 0) {
563563 DEBUG(dbgs() << "\t\t" << TRI->getName(Reg) << ":");
564564
565 BitVector BV = GetRenameRegisters(Reg);
566 RenameRegisterMap.insert(std::pair(Reg, BV));
567
568 DEBUG(dbgs() << " ::");
569 DEBUG(for (int r = BV.find_first(); r != -1; r = BV.find_next(r))
570 dbgs() << " " << TRI->getName(r));
571 DEBUG(dbgs() << "\n");
565 BitVector &BV = RenameRegisterMap[Reg];
566 assert(BV.empty());
567 BV = GetRenameRegisters(Reg);
568
569 DEBUG({
570 dbgs() << " ::";
571 for (int r = BV.find_first(); r != -1; r = BV.find_next(r))
572 dbgs() << " " << TRI->getName(r);
573 dbgs() << "\n";
574 });
572575 }
573576 }
574577
649652 DEBUG(dbgs() << " " << TRI->getName(NewReg));
650653
651654 // Check if Reg can be renamed to NewReg.
652 BitVector BV = RenameRegisterMap[Reg];
653 if (!BV.test(NewReg)) {
655 if (!RenameRegisterMap[Reg].test(NewReg)) {
654656 DEBUG(dbgs() << "(no rename)");
655657 goto next_super_reg;
656658 }