Decompiler2: Inline table fields (and SETTABLEs)
ds84182 opened this issue · comments
Dwayne Slater commented
Example from the current table test
r0 = {}
r0.a = 4
r1 = r0.a
return r1
TO
r0 = {}
r0.a = 4
return r0.a
This can be optimized to:
r0 = {a=4}
return r0.a
And then to:
return ({a=4}).a