diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-03 23:50:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-03 23:50:46 +0000 |
commit | 8666249ad6eca27d267f251495545bca132a9a5c (patch) | |
tree | f50ee51c7fcfe76b24701890dea1879b25d99b8e /lib/CodeGen/VirtRegMap.cpp | |
parent | 593c95878b089388f9c82b8c7b1f4731af86c792 (diff) |
Handle another case exposed on X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 24640a9fe1..24457b4a63 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -274,6 +274,10 @@ public: /// specified physreg. If CanClobber is true, the physreg can be modified at /// any time without changing the semantics of the program. void addAvailable(int Slot, unsigned Reg, bool CanClobber = true) { + // If this stack slot is thought to be available in some other physreg, + // remove its record. + ModifyStackSlot(Slot); + PhysRegsAvailable.insert(std::make_pair(Reg, Slot)); SpillSlotsAvailable[Slot] = (Reg << 1) | CanClobber; |