aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SjLjEHPrepare.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-06-16 18:45:08 +0000
committerJim Grosbach <grosbach@apple.com>2010-06-16 18:45:08 +0000
commitee4995fbcb91de2c96d353f4f6d0d0c8875604e4 (patch)
tree1c2ee8f74baaf4a53f949af3bfde2a4f3a014df0 /lib/CodeGen/SjLjEHPrepare.cpp
parentea566a3bc0ea2a1a34801bd04e4cf8dc796cb028 (diff)
downloadexternal_llvm-ee4995fbcb91de2c96d353f4f6d0d0c8875604e4.zip
external_llvm-ee4995fbcb91de2c96d353f4f6d0d0c8875604e4.tar.gz
external_llvm-ee4995fbcb91de2c96d353f4f6d0d0c8875604e4.tar.bz2
add FIXME
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SjLjEHPrepare.cpp')
-rw-r--r--lib/CodeGen/SjLjEHPrepare.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SjLjEHPrepare.cpp b/lib/CodeGen/SjLjEHPrepare.cpp
index a002ef8..9aa2b69 100644
--- a/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/lib/CodeGen/SjLjEHPrepare.cpp
@@ -289,6 +289,9 @@ splitLiveRangesAcrossInvokes(SmallVector<InvokeInst*,16> &Invokes) {
}
// If we decided we need a spill, do it.
+ // FIXME: Spilling this way is overkill, as it forces all uses of
+ // the value to be reloaded from the stack slot, even those that aren't
+ // in the unwind blocks. We should be more selective.
if (NeedsSpill) {
++NumSpilled;
DemoteRegToStack(*Inst, true);