diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-05 01:43:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-05 01:43:49 +0000 |
commit | 0665a5f1f5716a69982f4bcd654e5ace975d0c0a (patch) | |
tree | 67856963d43737337cb4c9c2d7940989d9e16341 /lib/Target/SparcV9/LiveVar/BBLiveVar.cpp | |
parent | f39f379f9ec2e2908c89fdc809c9665c7484edb1 (diff) |
* Code Cleanups
* Introduce RAV to allow stream I/O instead of using printValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/LiveVar/BBLiveVar.cpp')
-rw-r--r-- | lib/Target/SparcV9/LiveVar/BBLiveVar.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp index b8b9e53c10..81bbd38756 100644 --- a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp +++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp @@ -70,13 +70,9 @@ void BBLiveVar::calcDefUseSets() { PhiArgMap[ArgVal] = cast<BasicBlock>(BBVal); - if (DEBUG_LV > 1) { - cerr << " - phi operand "; - printValue(ArgVal); - cerr << " came from BB "; - printValue(PhiArgMap[ArgVal]); - cerr << "\n"; - } + if (DEBUG_LV > 1) + cerr << " - phi operand " << RAV(ArgVal) << " came from BB " + << RAV(PhiArgMap[ArgVal]) << "\n"; } // if( IsPhi ) } // if a use } // for all operands @@ -105,9 +101,7 @@ void BBLiveVar::addDef(const Value *Op) { InSet.erase(Op); // this definition kills any uses InSetChanged = true; - if (DEBUG_LV > 1) { - cerr << " +Def: "; printValue( Op ); cerr << "\n"; - } + if (DEBUG_LV > 1) cerr << " +Def: " << RAV(Op) << "\n"; } @@ -119,9 +113,7 @@ void BBLiveVar::addUse(const Value *Op) { OutSet.erase(Op); // remove if there is a def below this use InSetChanged = true; - if (DEBUG_LV > 1) { - cerr << " Use: "; printValue( Op ); cerr << "\n"; - } + if (DEBUG_LV > 1) cerr << " Use: " << RAV(Op) << "\n"; } |