Constant folding and constant propagation are related compiler optimizations used by many modern compilers. An advanced form of constant propagation known as sparse conditional constant propagation can more accurately propagate constants and simultaneously remove dead code.
Read more about Constant Folding: Constant Folding, Constant Folding and Cross Compilation, Constant Propagation, The Optimizations in Action
Famous quotes containing the words constant and/or folding:
“Language is like soil. However rich, it is subject to erosion, and its fertility is constantly threatened by uses that exhaust its vitality. It needs constant re-invigoration if it is not to become arid and sterile.”
—Elizabeth Drew (18871965)
“A little sleep, a little slumber, a little folding of the hands to rest, and poverty will come upon you like a robber, and want, like an armed warrior.”
—Bible: Hebrew, Proverbs 6:10.