llvm.org GIT mirror llvm / 680363b
Tablegen'd regpressure: emit the weighted pressure limit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154477 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Trick 8 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
151151 << "getRegPressureSetLimit(unsigned Idx) const {\n"
152152 << " static const unsigned PressureLimitTable[] = {\n";
153153 for (unsigned i = 0; i < NumSets; ++i ) {
154 OS << " " << RegBank.getRegPressureSet(i).Units.size()
154 const RegUnitSet &RegUnits = RegBank.getRegPressureSet(i);
155 unsigned Weight = 0;
156 for (RegUnitSet::iterator
157 I = RegUnits.Units.begin(), E = RegUnits.Units.end(); I != E; ++I) {
158 Weight += RegBank.getRegUnitWeight(*I);
159 }
160 OS << " " << Weight
155161 << ", \t// " << i << ": " << RegBank.getRegPressureSet(i).Name << "\n";
156162 }
157163 OS << " 0 };\n"