Skip to content

Commit e8237d9

Browse files
authored
Merge pull request #1980 from wiremod/fix/1975
Remove a broken E2 peephole optimization
2 parents 1b4c133 + 8670499 commit e8237d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lua/entities/gmod_wire_expression2/base/optimizer.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ function peephole.mul(instruction)
142142
end
143143
-- (mul 1 x) → x
144144
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
147145
-- (mul -1 x) → (neg x)
148146
if instruction[3][1] == "literal" and instruction[3][3] == -1 then
149147
return {"neg", instruction[2], instruction[4]}

0 commit comments

Comments
 (0)