Photonic-based implementation of advanced computing tasks is a potential alternative to mitigate the bandwidth limitations of electronics. Despite the inherent advantage of a large bandwidth, photonic systems are generally bulky and power-hungry. In this respect, all-pass spectral phase filters enable simultaneous ultrahigh speed operation and minimal power consumption for a wide range of signal processing functionalities. Yet, phase filters offering GHz to sub-GHz frequency resolution in practical, integrated platforms have remained elusive. We report a fibre Bragg grating-based phase filter with a record frequency resolution of 1 GHz, at least 10× improvement compared to a conventional optical waveshaper. The all-fibre phase filter is employed to experimentally realize high-speed fully passive NOT and XNOR logic operations. We demonstrate inversion of a 45-Gbps 127-bit random sequence with an energy consumption of ~34 fJ/bit, and XNOR logic at a bit rate of 10.25 Gbps consuming ~425 fJ/bit. The scalable implementation of phase filters provides a promising path towards widespread deployment of compact, low-energy-consuming signal processors.