Open jsiek opened 3 weeks ago
As discussed here: https://github.com/IUCompilerCourse/Essentials-of-Compilation/issues/179#issuecomment-2410329047
This can be solved by partially evaluating the not operation before the RCO pass, resulting in:
print(42 if x != y else 5)
For example,
compiles to more efficient code if RCO doesn't create a temporary for
x == y
.