It is fairly well known that in a NISQ context you can often boost the fidelity of your quantum circuit by reducing the gate count and depth of your circuit. For example you can use the KAK decomposition to implement two qubit unitary blocks with at most three CNOT gates.
I'm curious about how compilers might work as we move towards fault-tolerant quantum computing. I've heard of work on minimising the "T-count" of circuits as T gates require a costly magic state distillation procedure to implement.
As is the case with NISQ circuits, fault tolerant circuits will still need to be routed to satisfy the connectivity constraints of the target architecture (if the architecture is not "fully connected").
If we naively try to reduce the gate count of a fault-tolerant circuit we may often end up removing gates which are essential for error correction to work properly.
Is there much research on optimising quantum circuits without breaking error correction? Is T gate reduction the most useful thing to focus on?