Teach InstructionSimplify about distributive laws. These transforms fire
authorDuncan Sands <baldrick@free.fr>
Tue, 21 Dec 2010 13:32:22 +0000 (13:32 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 21 Dec 2010 13:32:22 +0000 (13:32 +0000)
commit3421d908539cc489d2b1dac67d8cbc07160b01db
tree7fca8a20ec97f1b5a9c78cc5fb30954b72030f46
parent0312a93693abc2eb682b2b101c889959888fd883
Teach InstructionSimplify about distributive laws.  These transforms fire
quite often, but don't make much difference in practice presumably because
instcombine also knows them and more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122328 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/2010-12-20-Distribute.ll [new file with mode: 0644]