aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/VirtRegMap.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-30 08:41:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-30 08:41:47 +0000
commit200370fb5617a1719f0054804b412469ce486ebd (patch)
treed987158809ec13a1df29169325f6d356dcc631b5 /lib/CodeGen/VirtRegMap.h
parent10a59ce7018d7e4c32c801f9ed3d2ab18751d9d6 (diff)
downloadexternal_llvm-200370fb5617a1719f0054804b412469ce486ebd.tar.gz
external_llvm-200370fb5617a1719f0054804b412469ce486ebd.tar.bz2
external_llvm-200370fb5617a1719f0054804b412469ce486ebd.zip
Local spiller kills a store if the folded restore is turned into a copy.
But this is incorrect if the spilled value live range extends beyond the current BB. It is currently controlled by a temporary option -spiller-check-liveout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.h')
-rw-r--r--lib/CodeGen/VirtRegMap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h
index d8c371c6dd..343a4e066a 100644
--- a/lib/CodeGen/VirtRegMap.h
+++ b/lib/CodeGen/VirtRegMap.h
@@ -26,7 +26,7 @@ namespace llvm {
class VirtRegMap {
public:
- enum ModRef { isRef = 1, isMod = 2, isModRef = 3 };
+ enum ModRef { isRef = 1, isMod = 2, isModRef = 3, isLiveOut = 4 };
typedef std::multimap<MachineInstr*,
std::pair<unsigned, ModRef> > MI2VirtMapTy;
@@ -128,7 +128,7 @@ namespace llvm {
/// folded into newMI machine instruction. The OpNum argument indicates the
/// operand number of OldMI that is folded.
void virtFolded(unsigned VirtReg, MachineInstr *OldMI, unsigned OpNum,
- MachineInstr *NewMI);
+ MachineInstr *NewMI, bool LiveOut);
/// @brief returns the virtual registers' values folded in memory
/// operands of this instruction