diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-18 22:43:57 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-09-18 22:43:57 +0000 |
commit | 1f331f258beb3da3bb9bd367ed70063f1cddea97 (patch) | |
tree | 8d3e6952424b77aad3dfc1534e7c519b6be8a0db /llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | |
parent | 1d06a467237faf99078fe5bda47ce3a748d4c1d5 (diff) | |
download | bcm5719-llvm-1f331f258beb3da3bb9bd367ed70063f1cddea97.tar.gz bcm5719-llvm-1f331f258beb3da3bb9bd367ed70063f1cddea97.zip |
-- updated printing
llvm-svn: 631
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp index 64cac9bd3b8..17139e43b74 100644 --- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp +++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp @@ -91,6 +91,20 @@ void LiveRangeInfo::constructLiveRanges() // iterate over MI operands to find defs for( MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done(); OpI++) { + + // delete later from here ************ + MachineOperand::MachineOperandType OpTyp = + OpI.getMachineOperand().getOperandType(); + + if ( OpTyp == MachineOperand::MO_CCRegister) { + cout << "\n**CC reg found. Is Def=" << OpI.isDef() << " Val:"; + printValue( OpI.getMachineOperand().getVRegValue() ); + cout << endl; + } + // ************* to here + + + // create a new LR iff this operand is a def if( OpI.isDef() ) { @@ -120,7 +134,7 @@ void LiveRangeInfo::constructLiveRanges() OpI.getMachineOperand().getVRegValue(), isCC ); - if(isCC ) { + if(isCC && DEBUG_RA) { cout << "\a**created a LR for a CC reg:"; printValue( OpI.getMachineOperand().getVRegValue() ); } |