projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f800a6
)
add FIXME
author
Jim Grosbach
<grosbach@apple.com>
Wed, 16 Jun 2010 18:45:08 +0000
(18:45 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Wed, 16 Jun 2010 18:45:08 +0000
(18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106126
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SjLjEHPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SjLjEHPrepare.cpp
b/lib/CodeGen/SjLjEHPrepare.cpp
index a002ef8a628c69d076479058f221e2892281e386..9aa2b69f65cd58531c089519e2e84ec40b8691db 100644
(file)
--- 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);