diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-03-11 21:34:46 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-11 21:34:46 +0000 |
commit | c1f53c742620dd4f2460685477303002bba8a8d8 (patch) | |
tree | 2f56ff10470c4e84228abd285d7b6aae291e1f4a /lib/CodeGen/VirtRegMap.cpp | |
parent | 9736028d84de3a72dd8db5f49cfaa07280154a0e (diff) | |
download | llvm-c1f53c742620dd4f2460685477303002bba8a8d8.tar.gz llvm-c1f53c742620dd4f2460685477303002bba8a8d8.tar.bz2 llvm-c1f53c742620dd4f2460685477303002bba8a8d8.tar.xz |
Transfer physical register spill info when load / store folding happens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48246 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index cce36e5162..3b6612de4f 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -35,6 +35,7 @@ using namespace llvm; STATISTIC(NumSpills, "Number of register spills"); +STATISTIC(NumPSpills,"Number of physical register spills"); STATISTIC(NumReMats, "Number of re-materialization"); STATISTIC(NumDRM , "Number of re-materializable defs elided"); STATISTIC(NumStores, "Number of stores added"); @@ -1079,7 +1080,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) { TII->loadRegFromStackSlot(MBB, next(MII), PhysReg, SS, RC); MachineInstr *LoadMI = next(MII); VRM.addSpillSlotUse(SS, LoadMI); - ++NumSpills; + ++NumPSpills; } } |