commit | 6844c8ea5a67e551be7106d6b7b9e1a64eecbe51 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Fri Sep 10 22:39:55 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Fri Sep 10 22:39:55 2010 +0000 |
tree | b11daf32edb5ff3fbb9e4d75e0d12a14661da301 | |
parent | e2d50046fd29cb3eb2483e080cb7c39b460fbb19 [diff] |
Teach InstructionSimplify to fold (A & B) & A -> A & B and (A | B) | A -> A | B. Reassociate does this but it doesn't catch all cases (e.g. if the operands are i1). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113651 91177308-0d34-0410-b5e6-96231b3b80d8