#364 Generalized constant propagation

open
nobody
None
5
2012-05-14
2012-05-14
No

sdcc currenlty lacks generalized constant propagation. Analyzing the set of possible values (exact, or using intervals or whatver comnple lattice seems appropriate) would give additional information for optimization: It would help in replacing types by cheaper types (e.g. using a cheap unsigned char where the programmer used int), or allow simpler code to be generated for singed comparisons, etc.

Philipp

Discussion