For example,
((X & 255) != 0) && ((X & 15) == 8) -> ((X & 15) == 8).
((X & 7) != 0) && ((X & 15) == 8) -> false.
Paths
| Differential D43835
Simplify more cases of logical ops of masked icmps. ClosedPublic Authored by hjyamauchi on Feb 27 2018, 2:43 PM.
Details Summary For example, ((X & 255) != 0) && ((X & 15) == 8) -> ((X & 15) == 8).
Diff Detail
Event Timeline
hjyamauchi marked 6 inline comments as done. Comment ActionsAddressed comments.
hjyamauchi added inline comments.
hjyamauchi added inline comments.
This revision is now accepted and ready to land.Mar 13 2018, 1:11 PM Closed by commit rL327450: Simplify more cases of logical ops of masked icmps. (authored by hjyamauchi). · Explain WhyMar 13 2018, 2:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 138259 llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/trunk/test/Transforms/InstCombine/icmp-logical.ll
|