joker.eph added a comment. knowing that SelectionDAG operates per basic-block, this makes me worried about implications on the ability of SelectionDAG to combine. I feel this is something that would better be done at the MI level. http://reviews.llvm.org/D13297