llvm.org GIT mirror llvm / 71f7f73
Approved by Evan $ svn merge -c 114220 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r114220 into '.': U lib/CodeGen/MachineCSE.cpp $ svn merge -c 114222 https://llvm.org/svn/llvm-project/llvm/trunk --- Merging r114222 into '.': G lib/CodeGen/MachineCSE.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_28@114224 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
1 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5151 AU.addPreservedID(MachineLoopInfoID);
5252 AU.addRequired();
5353 AU.addPreserved();
54 }
55
56 virtual void releaseMemory() {
57 ScopeMap.clear();
58 Exps.clear();
5459 }
5560
5661 private:
100105 unsigned Reg = MO.getReg();
101106 if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
102107 continue;
103 if (!MRI->hasOneUse(Reg))
108 if (!MRI->hasOneNonDBGUse(Reg))
104109 // Only coalesce single use copies. This ensure the copy will be
105110 // deleted.
106111 continue;
468473 DenseMap ParentMap;
469474 DenseMap OpenChildren;
470475
476 CurrVN = 0;
477
471478 // Perform a DFS walk to determine the order of visit.
472479 WorkList.push_back(Node);
473480 do {