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 | c93403a7fb5b30d96bbd149b750e4ea5e186b798 (patch) | |
| tree | 2f153ca9e93bef629430cec02802592f2a17f5a4 /llvm/lib/CodeGen | |
| parent | 71d20c4e18fbc5856c4cd8983becb4805ef4e32f (diff) | |
| download | bcm5719-llvm-c93403a7fb5b30d96bbd149b750e4ea5e186b798.tar.gz bcm5719-llvm-c93403a7fb5b30d96bbd149b750e4ea5e186b798.zip | |
Handle another case exposed on X86.
llvm-svn: 25949
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 24640a9fe18..24457b4a63d 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/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; |

