summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-24 02:15:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-24 02:15:22 +0000
commitad934b821c78d39e73a213c62cd57288f8605a0c (patch)
tree6c4d0d28e69cc32adac0907ed508aea02ec41975 /include
parent1d75d3a8ae5c682521e2a3968a132236ad47f410 (diff)
downloadllvm-ad934b821c78d39e73a213c62cd57288f8605a0c.tar.gz
llvm-ad934b821c78d39e73a213c62cd57288f8605a0c.tar.bz2
llvm-ad934b821c78d39e73a213c62cd57288f8605a0c.tar.xz
Clean up LiveVariables and change how it deals with partial updates and kills. This also eliminate the horrible check which scan forward to the end of the basic block. It should be faster and more accurate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index 45c72f5fe8..172fb75094 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -150,21 +150,14 @@ private: // Intermediate data structures
void HandlePhysRegUse(unsigned Reg, MachineInstr *MI);
void HandlePhysRegDef(unsigned Reg, MachineInstr *MI,
- SmallVector<unsigned, 4> &Defs,
- SmallVector<unsigned, 4> &SuperDefs);
+ SmallVector<unsigned, 4> &Defs);
void UpdatePhysRegDefs(MachineInstr *MI, SmallVector<unsigned, 4> &Defs);
- void UpdateSuperRegDefs(MachineInstr *MI, SmallVector<unsigned, 4> &Defs);
/// FindLastPartialDef - Return the last partial def of the specified register.
/// Also returns the sub-registers that're defined by the instruction.
MachineInstr *FindLastPartialDef(unsigned Reg,
SmallSet<unsigned,4> &PartDefRegs);
- /// hasRegisterUseBelow - Return true if the specified register is used after
- /// the current instruction and before its next definition.
- bool hasRegisterUseBelow(unsigned Reg, MachineBasicBlock::iterator I,
- MachineBasicBlock *MBB);
-
/// analyzePHINodes - Gather information about the PHI nodes in here. In
/// particular, we want to map the variable information of a virtual
/// register which is used in a PHI node. We map that to the BB the vreg