]> granicus.if.org Git - llvm/commit
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)
commit53bdccfd619a08f348304e0f773072d7f8f7539d
tree39fcd244e8ed002f96e778e05692bc6be602a80c
parent1afb3de399b711b3b58bda1292381add28bdc383
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp-shr.ll