We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0e7b1 commit 9f0caadCopy full SHA for 9f0caad
src/lj_opt_fold.c
@@ -1052,7 +1052,7 @@ LJFOLDF(simplify_conv_sext)
1052
if (ref == J->scev.idx) {
1053
IRRef lo = J->scev.dir ? J->scev.start : J->scev.stop;
1054
lua_assert(irt_isint(J->scev.t));
1055
- if (lo && IR(lo)->i + ofs >= 0) {
+ if (lo && IR(lo)->o == IR_KINT && IR(lo)->i + ofs >= 0) {
1056
ok_reduce:
1057
#if LJ_TARGET_X64
1058
/* Eliminate widening. All 32 bit ops do an implicit zero-extension. */
0 commit comments