DescriptionRemoving useless calls in compiled code with code sinking.jpg
English: Many optimizing compilers will "sink" operations if they are performed redundantly for certain branches. EG, in this image, "B" is called redundantly when the branch for (D,E) is taken instead of (C[B], D). Note that D is not sunken into block (F) because this operation is considered code factoring more than code sinking.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse
Captions
A diagram depicting an optimizing compiler removing a useless call to assembly instruction "b" by sinking it to it's point of use.