On Thu Jun 29 03:11:40 2023 +0000, Zebediah Figura wrote:
Can you please spell out the other cases instead of using DEFAULT? Not least because some brief tests suggest INDEX should also be allowed. (Interestingly, though, ternary expressions are not.)
Done. Maybe they have evaluation logic separate from optimization/elimination passes like we do now. I also added a test for index access, and that does not work yet probably because of some limitation of copy propagation/folding logic. But it's not filtered out too early now at least.