[InstCombine] add helper function for ICmp with constant canonicalization; NFCI
authorSanjay Patel <spatel@rotateright.com>
Fri, 29 Apr 2016 16:22:25 +0000 (16:22 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 29 Apr 2016 16:22:25 +0000 (16:22 +0000)
commitd5b0e54b492f2433d8ea099f5a25254465585a37
tree656f33f661eeb372a9eaa94ad337eb1f30bb1ffd
parent7225cd52e70c02479ffc3bdc4dded02a688b8da4
[InstCombine] add helper function for ICmp with constant canonicalization; NFCI

As suggested in http://reviews.llvm.org/D17859 , we should enhance this
to support vectors.

llvm-svn: 268059
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp