Homework 9
- Due Nov 17, 2016 by 1:50pm
- Points 12
Start with one of the larger .ll files under calc-compiler/output.
Get a record of the optimizer's work by running this command:
opt -O2 -print-after-all file.ll
Create a writeup explaining what each optimization that changes the file is thinking. What is it doing? What kind of static analyses drive it? What is the goal? Include code examples as needed to back up your explanations.
Submit your writeup as a markdown file containing your last name, so for example I would submit regehr.md. Submit it using a pull request to my calc-compiler github repo.
NOTE: as soon as you make a pull req, your submission will be world visible. Try to make it good! Pretend you are explaining LLVM optimizations to a beginning CS student who understands basic programming concepts but does not know much about compilers.