Dose material editor optimize power with intiger exponent?

Hey recently i watched this GDC talk about 0-1 space transformations


I started wondering if ue4 material compiler recognize that Power with static intiger exponent, for example 2, is just Base*Base? Any one knows secrets of Power node wroking ? :stuck_out_tongue: Maybe this guys chack could be implemented to speed things up?

I know its very technical but I think its good to always look for ways of speeding shaders up :slight_smile:

Material editor does not optimize that. Compilers, further down the pipeline, however, do.

Thank you for the response