llvm.org GIT mirror llvm / 878ef1d
Suppress warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60041 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
417417 if (NewReg == LastNewReg[AntiDepReg]) continue;
418418 // If NewReg is dead and NewReg's most recent def is not before
419419 // AntiDepReg's kill, it's safe to replace AntiDepReg with NewReg.
420 assert(((KillIndices[AntiDepReg] == -1) != (DefIndices[AntiDepReg] == -1)) &&
420 assert(((KillIndices[AntiDepReg] == -1u) != (DefIndices[AntiDepReg] == -1u)) &&
421421 "Kill and Def maps aren't consistent for AntiDepReg!");
422 assert(((KillIndices[NewReg] == -1) != (DefIndices[NewReg] == -1)) &&
422 assert(((KillIndices[NewReg] == -1u) != (DefIndices[NewReg] == -1u)) &&
423423 "Kill and Def maps aren't consistent for NewReg!");
424 if (KillIndices[NewReg] == -1 &&
424 if (KillIndices[NewReg] == -1u &&
425425 KillIndices[AntiDepReg] <= DefIndices[NewReg]) {
426426 DOUT << "Breaking anti-dependence edge on reg " << AntiDepReg
427427 << " with reg " << NewReg << "!\n";
468468 // a live range.
469469 Defs.erase(Reg);
470470 // It wasn't previously live but now it is, this is a kill.
471 if (KillIndices[Reg] == -1) {
471 if (KillIndices[Reg] == -1u) {
472472 KillIndices[Reg] = Count;
473 DefIndices[Reg] = -1;
473 DefIndices[Reg] = -1u;
474474 }
475475 // Repeat, for all aliases.
476476 for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) {
477477 unsigned AliasReg = *Alias;
478478 Defs.erase(AliasReg);
479 if (KillIndices[AliasReg] == -1) {
479 if (KillIndices[AliasReg] == -1u) {
480480 KillIndices[AliasReg] = Count;
481 DefIndices[AliasReg] = -1;
481 DefIndices[AliasReg] = -1u;
482482 }
483483 }
484484 }