commit | 4f9797d683156bc5b59f5be66d0c01a369935ba1 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Mar 24 18:15:30 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Mar 24 18:15:30 2009 +0000 |
tree | 82b5a2e75f2964565e2b7da2dfe13328171026f1 | |
parent | e330ae5b32fa5f798894cec207fd9e4fcc578382 [diff] |
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