Yu-Hui Wu

Results 5 comments of Yu-Hui Wu

Sure, I'll add test cases to `tests/driver.sh`. @DrXiao, Thank you for your feedback. I've decided to first ensure the correctness of the logical-and operation. Currently, left-to-right evaluation cannot be achieved....

@vacantron, I'm currently modifying the parser to achieve left-to-right evaluation. But if I start modifying the implementation from the parser, the changes to the codegen might not be necessary.

In `src/ssa.c`, within the `insert_phi_insn` function, why we didn't link the `prev` pointer between the original instruction and the new phi-func? This can cause errors in `append_unwound_phi_insn`. For example, if...

> The property `prev` was added later and I forgot to update the related code. Thank you to point it out So should I keep the modifications in `append_unwound_phi_insn` for...

Using a hash map to achieve this is a good idea, but would it be simpler to directly add a data structure that records the DU-chain in `struct var`? Or...