diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-06-24 00:12:39 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-06-24 00:12:39 +0000 |
commit | e9c59711d3d1e8b133763393bea92af6e36b0031 (patch) | |
tree | c72c317fe18aa2514dab558fc45987c1007c11fb /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 774cca70b10bc679daff8203d639d9004a2eb194 (diff) | |
download | external_llvm-e9c59711d3d1e8b133763393bea92af6e36b0031.zip external_llvm-e9c59711d3d1e8b133763393bea92af6e36b0031.tar.gz external_llvm-e9c59711d3d1e8b133763393bea92af6e36b0031.tar.bz2 |
Replace a big gob of old coalescer logic with the new CoalescerPair class.
CoalescerPair can determine if a copy can be coalesced, and which register gets
merged away. The old logic in SimpleRegisterCoalescing had evolved into
something a bit too convoluted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 32fa709..8f4de3f 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -133,10 +133,9 @@ namespace llvm { bool conflictsWithPhysReg(const LiveInterval &li, VirtRegMap &vrm, unsigned reg); - /// conflictsWithSubPhysRegRef - Similar to conflictsWithPhysRegRef except - /// it checks for sub-register reference and it can check use as well. - bool conflictsWithSubPhysRegRef(LiveInterval &li, unsigned Reg, - bool CheckUse, + /// conflictsWithAliasRef - Similar to conflictsWithPhysRegRef except + /// it checks for alias uses and defs. + bool conflictsWithAliasRef(LiveInterval &li, unsigned Reg, SmallPtrSet<MachineInstr*,32> &JoinedCopies); // Interval creation |