diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-05 18:27:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-05 18:27:40 +0000 |
commit | 3749943648772743c9c0e852553e50e6700a0c1b (patch) | |
tree | b35ba6cec28766d9af41054a7555bcf3b05028b7 /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 91dd419ba4fa091dc376297e6c5d5ba43805f4a1 (diff) | |
download | external_llvm-3749943648772743c9c0e852553e50e6700a0c1b.zip external_llvm-3749943648772743c9c0e852553e50e6700a0c1b.tar.gz external_llvm-3749943648772743c9c0e852553e50e6700a0c1b.tar.bz2 |
Teach liveintervalanalysis about virtual registers which are defined by reg_sequence instructions that are formed by registers defined by distinct instructions. e.g.
80 %reg1041:6<def> = VSHRNv4i16 %reg1034<kill>, 12, pred:14, pred:%reg0
. . .
120 %reg1041:5<def> = VSHRNv4i16 %reg1039<kill>, 12, pred:14, pred:%reg0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 351217c..32fa709 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -303,6 +303,12 @@ namespace llvm { SlotIndex MIIdx, MachineOperand& MO, unsigned MOIdx); + /// isPartialRedef - Return true if the specified def at the specific index + /// is partially re-defining the specified live interval. A common case of + /// this is a definition of the sub-register. + bool isPartialRedef(SlotIndex MIIdx, MachineOperand &MO, + LiveInterval &interval); + /// handleVirtualRegisterDef - update intervals for a virtual /// register def void handleVirtualRegisterDef(MachineBasicBlock *MBB, |