local a = i * 1.27 -- MULK
local b = 1.27 * i -- MULK
local c = i + 1.27 -- ADDK
local d = 1.27 + i -- ADDK
for i = 1, 1_000_000 do
local a = i * 1.27 -- MULK
local b = 1.27 * i -- MUL
local c = i + 1.27 -- ADDK
local d = 1.27 + i -- ADD
end
Courtesy of @EternalAbby
Also seems to happen when i is a global, imported from another module (local i = require("...")), or the result of a table index (1.27 + foo.i). More perhaps to be tested
Note: O2