Dead Code Elimination removes unused and unreachable statements from program.
For example, if condition in if block is false, the entire comparison can be removed or the else branch can be substituted.
if (3 == 5) {
func1()
} else {
func2()
}
might be replaced with
func2()
🎥 Continuation of video series about creating own programming language. From this course you'll learn about such algorithms:
constant folding;
constant propagation;
dead code elimination;
expression simplification;
instruction combining.
Source code: https://github.com/aNNiMON/Own-Progra...
See also the main course to create a programming language: • Как создать свой язык программирования
👉 Visit my website https://www.annimon.com/
There you will find a lot of useful articles and lessons, you can ask a question interesting you or discuss it on the forum.
✏️
VK: https://vk.com/annimon_com
Twitter: / annimon_com
Telegram: https://t.me/annimon_com
Watch video #3. Dead Code Elimination | Optimization in PL online without registration, duration hours minute second in high quality. This video was added by user aNNiMON 20 November 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 810 once and liked it 21 people.