rtl optimization