two changes:
authorChris Lattner <sabre@nondot.org>
Tue, 24 Mar 2009 18:15:30 +0000 (18:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Mar 2009 18:15:30 +0000 (18:15 +0000)
commit4f9797d683156bc5b59f5be66d0c01a369935ba1
tree82b5a2e75f2964565e2b7da2dfe13328171026f1
parente330ae5b32fa5f798894cec207fd9e4fcc578382
two changes:
1. Make instcombine always canonicalize trunc x to i1 into an icmp(x&1).  This
   exposes the AND to other instcombine xforms and is more of what the code
   generator expects.
2. Rewrite the remaining trunc pattern match to use 'match', which
   simplifies it a lot.

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