Recommit r256952 "Filtering IR printing for print-after-all/print-before-all"