[InstCombine] add helper for shift-by-shift folds; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sat, 10 Dec 2016 22:16:29 +0000 (22:16 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 10 Dec 2016 22:16:29 +0000 (22:16 +0000)
commit4c48bbe94da7d0c6b949631b5ecdc2ff045960e1
tree67cc13508717c65c75fd815457654bc3773cb177
parentb71b214287147769ef24bdb6a422272398b57f6d
[InstCombine] add helper for shift-by-shift folds; NFCI

These are currently limited to integer types, but we should
be able to extend to splat vectors and possibly general vectors.

llvm-svn: 289343
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp