The resistor and capacitor R17/C34 are not used in the typical application on page 32 of the datasheet, they are probably there for glitch removal i.e. spikes present on the switching edges and do not form part of the control loop, if that is their reason, then you would want them well outside the control loop frequency so that they don't compromise stability.