Skip to content

Commit 94ecbec

Browse files
committed
Remove unnecessary context_ensure_fpregs calls
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 425e02a commit 94ecbec

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libAtomVM/opcodesswitch.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6028,7 +6028,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
60286028
#ifdef IMPL_EXECUTE_LOOP
60296029
TRACE("fmove/2 fp%i, %c%i\n", freg, T_DEST_REG(dreg));
60306030
// Space should be available on heap as compiler added an allocate opcode
6031-
context_ensure_fpregs(ctx);
60326031
term float_value = term_from_float(ctx->fr[freg], &ctx->heap);
60336032
WRITE_REGISTER(dreg, float_value);
60346033
#endif
@@ -6093,7 +6092,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
60936092
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
60946093
feclearexcept(FE_OVERFLOW);
60956094
#endif
6096-
context_ensure_fpregs(ctx);
60976095
ctx->fr[freg3] = ctx->fr[freg1] + ctx->fr[freg2];
60986096
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
60996097
if (fetestexcept(FE_OVERFLOW)) {
@@ -6140,7 +6138,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
61406138
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
61416139
feclearexcept(FE_OVERFLOW);
61426140
#endif
6143-
context_ensure_fpregs(ctx);
61446141
ctx->fr[freg3] = ctx->fr[freg1] - ctx->fr[freg2];
61456142
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
61466143
if (fetestexcept(FE_OVERFLOW)) {
@@ -6187,7 +6184,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
61876184
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
61886185
feclearexcept(FE_OVERFLOW);
61896186
#endif
6190-
context_ensure_fpregs(ctx);
61916187
ctx->fr[freg3] = ctx->fr[freg1] * ctx->fr[freg2];
61926188
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
61936189
if (fetestexcept(FE_OVERFLOW)) {
@@ -6234,7 +6230,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
62346230
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
62356231
feclearexcept(FE_OVERFLOW | FE_DIVBYZERO);
62366232
#endif
6237-
context_ensure_fpregs(ctx);
62386233
ctx->fr[freg3] = ctx->fr[freg1] / ctx->fr[freg2];
62396234
#ifdef HAVE_PRAGMA_STDC_FENV_ACCESS
62406235
if (fetestexcept(FE_OVERFLOW | FE_DIVBYZERO)) {

0 commit comments

Comments
 (0)