Turn stuff like:
authorChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 06:57:46 +0000 (06:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Apr 2007 06:57:46 +0000 (06:57 +0000)
commit8a9f57105207da1d4fc6ec4026ac9b586ed86976
tree890865b20ea2eb3bd0ad22aa9953feadb78b53a9
parenta2e2c9bbf30345d7488461e6fc18416d1a8ed3c8
Turn stuff like:

        icmp slt i32 %X, 0              ; <i1>:0 [#uses=1]
        sext i1 %0 to i32               ; <i32>:1 [#uses=1]

into:

        %X.lobit = ashr i32 %X, 31              ; <i32> [#uses=1]

This implements InstCombine/icmp.ll:test[34]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35891 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp