add folding and rtl time constant processing code