diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-06-23 21:03:19 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-23 21:03:19 +0000 |
| commit | c72dcd103caea2fc887f4dd8edb693c7c5adac2f (patch) | |
| tree | c1856324e3e400e2cda9350077cd2190aec99f04 /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | 41b744dc51622a48fdf72c79d747cbfbb1cd3413 (diff) | |
| download | bcm5719-llvm-c72dcd103caea2fc887f4dd8edb693c7c5adac2f.tar.gz bcm5719-llvm-c72dcd103caea2fc887f4dd8edb693c7c5adac2f.zip | |
Instead of adding an isSS field to LiveInterval to denote stack slot. Use top bit of 'reg' instead. If the top bit is set, than the LiveInterval represents a stack slot live interval.
llvm-svn: 52639
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 24bd028afda..b6a043c0dae 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -1,4 +1,4 @@ -//===-- StackSlotColoring.cpp - Sinking for machine instructions ----------===// +//===-- StackSlotColoring.cpp - Stack slot coloring pass. -----------------===// // // The LLVM Compiler Infrastructure // @@ -12,9 +12,9 @@ //===----------------------------------------------------------------------===// #define DEBUG_TYPE "stackcoloring" +#include "llvm/CodeGen/Passes.h" #include "llvm/CodeGen/LiveStackAnalysis.h" #include "llvm/CodeGen/MachineFrameInfo.h" -#include "llvm/CodeGen/Passes.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" @@ -201,7 +201,6 @@ int StackSlotColoring::ColorSlot(LiveInterval *li) { bool StackSlotColoring::ColorSlots(MachineFunction &MF) { unsigned NumObjs = MFI->getObjectIndexEnd(); std::vector<int> SlotMapping(NumObjs, -1); - SlotMapping.resize(NumObjs, -1); bool Changed = false; for (unsigned i = 0, e = SSIntervals.size(); i != e; ++i) { |

