[InstCombine][ValueTracking] Match non-uniform constant power-of-two vectors
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 6 Feb 2018 18:39:23 +0000 (18:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 6 Feb 2018 18:39:23 +0000 (18:39 +0000)
commit9f2ae7e2d122db53b26828b3e9a4a49a1d1a77d6
tree643d7e3e4bfbb49703db6bee1331edf1b1befaa3
parent332351d9b98f993e4d0eb83a98ff4d4bb619b541
[InstCombine][ValueTracking] Match non-uniform constant power-of-two vectors

Generalize existing constant matching to work with non-uniform constant vectors as well.

Differential Revision: https://reviews.llvm.org/D42818

llvm-svn: 324369
llvm/include/llvm/IR/PatternMatch.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/test/Transforms/InstCombine/vector-urem.ll