If the components of the and/or have multiple uses this transform creates an additional instruction.
This patch makes sure we remove one of the components.
Paths
| Differential D34498
[InstCombine] Add one use checks to or/and->xnor folding ClosedPublic Authored by craig.topper on Jun 21 2017, 10:32 PM.
Details Summary If the components of the and/or have multiple uses this transform creates an additional instruction. This patch makes sure we remove one of the components.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 22 2017, 6:11 AM Closed by commit rL306027: [InstCombine] Add one use checks to or/and->xnor folding (authored by ctopper). · Explain WhyJun 22 2017, 9:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 103587 llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/trunk/test/Transforms/InstCombine/and-or-not.ll
|