revert r314984: revert r314698 - [InstCombine] remove one-use restriction for icmp...
authorSanjay Patel <spatel@rotateright.com>
Sun, 15 Oct 2017 15:39:15 +0000 (15:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 15 Oct 2017 15:39:15 +0000 (15:39 +0000)
commit934738a3daee3306e02183b0d620a7b07bc00eed
treeca820208beb43fb4aefae55cb5efcfdd5cffb541
parent606093a53ba6effd69bca68bda3088325f2fcd7e
revert r314984: revert r314698 - [InstCombine] remove one-use restriction for icmp (shr exact X, C1), C2 --> icmp X, (C2<<C1)

Recommitting r314698. The bug exposed by this change should be fixed with:
https://reviews.llvm.org/rL315579

llvm-svn: 315857
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-shr.ll