In principle the combine pass could detect the use of a zero-extended value in a context in which the zero-extension is not required. In practice this would probably be difficult. No, I think the code is there to do it!