remove filterInstrs function

We use the default case of the pattern matching instead and generate a noop
instruction.
remove useless comment and dead code