diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-10 22:39:55 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-09-10 22:39:55 +0000 |
commit | 8c35fb0739e0725ca547d7113a0c41fd059da7cc (patch) | |
tree | 62bd2a0d4df6272124edea798d84c69882c5c9bd /llvm/lib/Transforms/Utils/ValueMapper.cpp | |
parent | b8a76c42b516e55b680ada2af960ecc9613a7c2d (diff) | |
download | bcm5719-llvm-8c35fb0739e0725ca547d7113a0c41fd059da7cc.tar.gz bcm5719-llvm-8c35fb0739e0725ca547d7113a0c41fd059da7cc.zip |
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).
llvm-svn: 113651
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
0 files changed, 0 insertions, 0 deletions