I have an 2009 Subaru Impreza WRX STi, I have a rodknock and trying to swap my engine with a 2005 Subaru Legacy GT 2.5 complete engine !

That would still fit right? Please give me your answers !

Would the compression and valves be the same?