[InstCombine] refactor trunc(binop) transforms; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sat, 5 Aug 2017 15:19:18 +0000 (15:19 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 5 Aug 2017 15:19:18 +0000 (15:19 +0000)
commit94da1de1cecf21cbcbc47972d5b780d7fdc7c63b
tree17f1e900911aaa94dc1a6a2ee28a3ad5f2b124ce
parentd51a35e339b97786ba4712f2bfd09c3f9c1848a3
[InstCombine] refactor trunc(binop) transforms; NFCI

In addition to moving the shift transforms over, we may want to
detect too-wide rotate patterns here (PR34046).

llvm-svn: 310181
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h