keith471 / COMP520_peephole

Other
0 stars 0 forks source link

Useless instructions #11

Closed keith471 closed 7 years ago

keith471 commented 7 years ago

After adding remove_unnecessary_label_traversal, we end up with the useless instruction sequence:

iconst_0
dup
ifne true_3
pop

Clearly, this will never cause a branch to true_3, so we should get rid of all of it.