[PATCH] D48466: [X86] Teach "(select (and (x , 0x1) == 0), y, (z | y) ) -> (-(and (x , 0x1)) & z ) | y" to also handle the case where there is no setcc and the and is used directly with the args swapped
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 22 14:53:40 PDT 2018
spatel added a comment.
I was working on a generic DAGCombiner patch for what I think are the early patterns in the motivating case:
https://rise4fun.com/Alive/Gsyp
...but we might need multiple patches to fix this up. I'll post what I have and see what you think
https://reviews.llvm.org/D48466
More information about the llvm-commits
mailing list