majnemer added a comment.
Does the rest of the optimization pipeline benefit from this canonicalization? If not, I would recommend moving this to CGP.
Repository:
rL LLVM
http://reviews.llvm.org/D15718