Skip to content

Commit d94f02a

Browse files
bcheng0127sys_zuul
authored andcommitted
two bank allocation works only for platform with low/high bundle.
Change-Id: I8811226e5da77608268ac5e9ed6fbae0c8295555
1 parent 97d8fa9 commit d94f02a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

visa/LocalRA.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ void LocalRA::trivialAssignRA(bool& needGlobalRA, bool threeSourceCandidate)
298298
{
299299
std::cout << "\t--trivial RA\n";
300300
}
301-
if (builder.oneGRFBankDivision())
301+
if (builder.lowHighBundle())
302302
{
303303
needGlobalRA = assignUniqueRegisters(threeSourceCandidate, true);
304304
}
305305
else
306306
{
307-
needGlobalRA = assignUniqueRegisters(threeSourceCandidate, highInternalConflict);
307+
needGlobalRA = assignUniqueRegisters(threeSourceCandidate, false);
308308
}
309309

310310

@@ -476,7 +476,6 @@ bool LocalRA::localRA()
476476
{
477477
doBCR = true;
478478
}
479-
480479
// Local RA passes:
481480
// RR+BC --> FF+BC -->FF-->Hybrids
482481
// or

0 commit comments

Comments
 (0)