mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 22:46:25 +00:00
Convert debug messages to use dbgs(). Generally this means
s/errs/dbgs/g except for certain special cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a85e4017aa
commit
63c4560526
@ -128,7 +128,7 @@ static bool getSCEVStartAndStride(const SCEV *&SH, Loop *L, Loop *UseLoop,
|
|||||||
if (!AddRecStride->properlyDominates(Header, DT))
|
if (!AddRecStride->properlyDominates(Header, DT))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
DEBUG(errs() << "[" << L->getHeader()->getName()
|
DEBUG(dbgs() << "[" << L->getHeader()->getName()
|
||||||
<< "] Variable stride: " << *AddRec << "\n");
|
<< "] Variable stride: " << *AddRec << "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,13 +233,13 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) {
|
|||||||
if (LI->getLoopFor(User->getParent()) != L) {
|
if (LI->getLoopFor(User->getParent()) != L) {
|
||||||
if (isa<PHINode>(User) || Processed.count(User) ||
|
if (isa<PHINode>(User) || Processed.count(User) ||
|
||||||
!AddUsersIfInteresting(User)) {
|
!AddUsersIfInteresting(User)) {
|
||||||
DEBUG(errs() << "FOUND USER in other loop: " << *User << '\n'
|
DEBUG(dbgs() << "FOUND USER in other loop: " << *User << '\n'
|
||||||
<< " OF SCEV: " << *ISE << '\n');
|
<< " OF SCEV: " << *ISE << '\n');
|
||||||
AddUserToIVUsers = true;
|
AddUserToIVUsers = true;
|
||||||
}
|
}
|
||||||
} else if (Processed.count(User) ||
|
} else if (Processed.count(User) ||
|
||||||
!AddUsersIfInteresting(User)) {
|
!AddUsersIfInteresting(User)) {
|
||||||
DEBUG(errs() << "FOUND USER: " << *User << '\n'
|
DEBUG(dbgs() << "FOUND USER: " << *User << '\n'
|
||||||
<< " OF SCEV: " << *ISE << '\n');
|
<< " OF SCEV: " << *ISE << '\n');
|
||||||
AddUserToIVUsers = true;
|
AddUserToIVUsers = true;
|
||||||
}
|
}
|
||||||
@ -262,7 +262,7 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) {
|
|||||||
const SCEV *NewStart = SE->getMinusSCEV(Start, Stride);
|
const SCEV *NewStart = SE->getMinusSCEV(Start, Stride);
|
||||||
StrideUses->addUser(NewStart, User, I);
|
StrideUses->addUser(NewStart, User, I);
|
||||||
StrideUses->Users.back().setIsUseOfPostIncrementedValue(true);
|
StrideUses->Users.back().setIsUseOfPostIncrementedValue(true);
|
||||||
DEBUG(errs() << " USING POSTINC SCEV, START=" << *NewStart<< "\n");
|
DEBUG(dbgs() << " USING POSTINC SCEV, START=" << *NewStart<< "\n");
|
||||||
} else {
|
} else {
|
||||||
StrideUses->addUser(Start, User, I);
|
StrideUses->addUser(Start, User, I);
|
||||||
}
|
}
|
||||||
@ -363,7 +363,7 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IVUsers::dump() const {
|
void IVUsers::dump() const {
|
||||||
print(errs());
|
print(dbgs());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IVUsers::releaseMemory() {
|
void IVUsers::releaseMemory() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user