aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-23 06:28:31 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-23 06:28:31 +0000
commitd062bf740651c35ed3ee80b66b02d8363fd14a3a (patch)
tree8350041adcde3c7f4c62bc987c7291ed028577c7 /include/llvm
parent29a1c10040effaa8c0968a3899b053b6b591a73a (diff)
downloadexternal_llvm-d062bf740651c35ed3ee80b66b02d8363fd14a3a.zip
external_llvm-d062bf740651c35ed3ee80b66b02d8363fd14a3a.tar.gz
external_llvm-d062bf740651c35ed3ee80b66b02d8363fd14a3a.tar.bz2
Fix PR5024. LiveVariables physical register defs should *commit* only after all
of the defs are processed. Also fix a implicit_def propagation bug: a implicit_def of a physical register should be applied to uses of the sub-registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82616 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index 52d5595..45c72f5 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -149,7 +149,11 @@ private: // Intermediate data structures
bool HandlePhysRegKill(unsigned Reg, MachineInstr *MI);
void HandlePhysRegUse(unsigned Reg, MachineInstr *MI);
- void HandlePhysRegDef(unsigned Reg, MachineInstr *MI);
+ void HandlePhysRegDef(unsigned Reg, MachineInstr *MI,
+ SmallVector<unsigned, 4> &Defs,
+ SmallVector<unsigned, 4> &SuperDefs);
+ 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.