Implement capability to fold this:
authorChris Lattner <sabre@nondot.org>
Wed, 14 Aug 2002 23:21:10 +0000 (23:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Aug 2002 23:21:10 +0000 (23:21 +0000)
commit5cf6f112e67e7d6897ed350d5e029868d0af33bf
tree8335ffb4993b4baee421cee240185e3cad822ec1
parent8360d0922ab683a3b57ecefe1890e75150b95294
Implement capability to fold this:
uint %test4(int %A, int %B) {
        %COND = setlt int %A, %B                ; <bool> [#uses=1]
        %result = cast bool %COND to uint               ; <uint> [#uses=1]
        ret uint %result
}
into a single cast instruction.

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