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.
2 parents 1b4c133 + 8670499 commit e8237d9Copy full SHA for e8237d9
lua/entities/gmod_wire_expression2/base/optimizer.lua
@@ -142,8 +142,6 @@ function peephole.mul(instruction)
142
end
143
-- (mul 1 x) → x
144
if instruction[3][1] == "literal" and instruction[3][3] == 1 then return instruction[4] end
145
- -- (mul 0 x) → 0
146
- if instruction[3][1] == "literal" and instruction[3][3] == 0 then return instruction[3] end
147
-- (mul -1 x) → (neg x)
148
if instruction[3][1] == "literal" and instruction[3][3] == -1 then
149
return {"neg", instruction[2], instruction[4]}
0 commit comments