add FIXME
authorJim Grosbach <grosbach@apple.com>
Wed, 16 Jun 2010 18:45:08 +0000 (18:45 +0000)
committerJim 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

index a002ef8a628c69d076479058f221e2892281e386..9aa2b69f65cd58531c089519e2e84ec40b8691db 100644 (file)
@@ -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);