[InstCombine] allow icmp (shr exact X, C2), C fold for splat constant vectors
authorSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 22:18:43 +0000 (22:18 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 22:18:43 +0000 (22:18 +0000)
commit0d70831d733f89d743ce5e4444796b834ae5797c
treece545f527a9bff9cf1839ead58e3e11bbbfca12e
parent541aef4661dc19aa7eff6324756ab5f9124239de
[InstCombine] allow icmp (shr exact X, C2), C fold for splat constant vectors

The enhancement to foldICmpDivConstant ( http://llvm.org/viewvc/llvm-project?view=revision&revision=280299 )
allows us to remove the ConstantInt check; no other changes needed.

llvm-svn: 280300
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/exact.ll