reames added a comment. Why not do this as either a) SelectionDAG or b) CodeGenPrepare? I don't see the value in having the separate pass for this. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D56096/new/ https://reviews.llvm.org/D56096