Check if an If's condition is constant and not generate then/else in that case.