[RyuJIT/armel] Allocate one more temp for call address
authorHanjoung Lee <hanjoung.lee@samsung.com>
Wed, 2 Aug 2017 08:19:55 +0000 (17:19 +0900)
committerHanjoung Lee <hanjoung.lee@samsung.com>
Mon, 7 Aug 2017 02:37:02 +0000 (11:37 +0900)
src/jit/lsra.cpp

index e5c62fd..d54a174 100644 (file)
@@ -8839,6 +8839,13 @@ void LinearScan::recordMaxSpill()
         maxSpill[TYP_FLOAT] += 1;
     }
 #endif // _TARGET_X86_
+
+    if (compiler->opts.compUseSoftFP)
+    {
+        JITDUMP("Adding a spill temp for moving target address to a register.\n");
+        maxSpill[TYP_INT] += 1;
+    }
+
     for (int i = 0; i < TYP_COUNT; i++)
     {
         if (var_types(i) != compiler->tmpNormalizeType(var_types(i)))