tstellarAMD accepted this revision. tstellarAMD added a comment. This revision is now accepted and ready to land. LGTM. It's too bad we don't have a good way to detect SALU/VALU ops at SelectionDAG time. I guess global ISel will help solve this problem. http://reviews.llvm.org/D16254