This was suggested as a follow-up in D20774. It's less duplicated code, but I'm not sure if it's more readable.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
On 2nd thought, this patch just exposed the strange split of logic of the original code.
I put all the commuted variants together in:
http://reviews.llvm.org/rL273702
And that makes the code in matchSelectFromAndOr() much easier to read:
http://reviews.llvm.org/rL273706