Changes in directory llvm/lib/CodeGen:

VirtRegMap.cpp updated: 1.44 -> 1.45
---
Log message:

Move isLoadFrom/StoreToStackSlot from MRegisterInfo to TargetInstrInfo,a far 
more logical place.  Other methods should also be moved if anyoneis interested. 
:)



---
Diffs of the changes:  (+3 -2)

 VirtRegMap.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.44 
llvm/lib/CodeGen/VirtRegMap.cpp:1.45
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.44        Sun Jan 22 17:41:00 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp     Thu Feb  2 14:12:13 2006
@@ -490,8 +490,9 @@
       // straight load from the virt reg slot.
       if ((MR & VirtRegMap::isRef) && !(MR & VirtRegMap::isMod)) {
         int FrameIdx;
-        if (unsigned DestReg = MRI->isLoadFromStackSlot(&MI, FrameIdx)) {
-          // If this spill slot is available, insert a copy for it!
+        if (unsigned DestReg = TII->isLoadFromStackSlot(&MI, FrameIdx)) {
+          // If this spill slot is available, turn it into a copy (or nothing)
+          // instead of leaving it as a load!
           std::map<int, unsigned>::iterator It = SpillSlotsAvailable.find(SS);
           if (FrameIdx == SS && It != SpillSlotsAvailable.end()) {
             DEBUG(std::cerr << "Promoted Load To Copy: " << MI);



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to