aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveVariables.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-01-15 22:58:11 +0000
committerOwen Anderson <resistor@mac.com>2008-01-15 22:58:11 +0000
commit40a627ddf87fe8e5fe057fba405cc0893cf14e70 (patch)
tree0e3e8c8dab381c0186080304a2ac3ee7b7f2d129 /include/llvm/CodeGen/LiveVariables.h
parent163974de4763c21db3c312aec0ffb834f5203d13 (diff)
Move some calls to getVRegDef higher in the callgraph, so they don't get executed as frequently in performance sensitive code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveVariables.h')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index 311d37eeb3..a392cdaffb 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -303,8 +303,10 @@ public:
/// register.
VarInfo &getVarInfo(unsigned RegIdx);
- void MarkVirtRegAliveInBlock(unsigned reg, MachineBasicBlock *BB);
- void MarkVirtRegAliveInBlock(unsigned reg, MachineBasicBlock *BB,
+ void MarkVirtRegAliveInBlock(VarInfo& VRInfo, MachineBasicBlock* DefBlock,
+ MachineBasicBlock *BB);
+ void MarkVirtRegAliveInBlock(VarInfo& VRInfo, MachineBasicBlock* DefBlock,
+ MachineBasicBlock *BB,
std::vector<MachineBasicBlock*> &WorkList);
void HandleVirtRegUse(unsigned reg, MachineBasicBlock *MBB,
MachineInstr *MI);