Redundant jumps due to asserts #389
iritkatriel
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
Does it matter whether |
Beta Was this translation helpful? Give feedback.
1 reply
-
That's for linters. I think we should be allowed to optimize away |
Beta Was this translation helpful? Give feedback.
1 reply
-
Isn't there a trick possible to generate lineno events without instructions? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I came across this in real code. When an assert is under an if, the assert disappears and leave a redundant conditional jump to the next block.
We have an optimisation the removes unconditional jumps to the next block. We can apply it to conditional jump like this one as well.
Beta Was this translation helpful? Give feedback.
All reactions