Canonicalize sext(i1) to i1?-1:0, and update various instcombine
authorDan Gohman <gohman@apple.com>
Thu, 30 Oct 2008 20:40:10 +0000 (20:40 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 30 Oct 2008 20:40:10 +0000 (20:40 +0000)
commit1975d03183966698650042e7a2bbd7198d276cfb
treef33349c5e9efe7c269db43d41ca63e460ea703ef
parentd383ff313b67b08ab36e2c0fa0ceac59c167333d
Canonicalize sext(i1) to i1?-1:0, and update various instcombine
optimizations accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58457 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/PatternMatch.h
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/logical-select.ll