[PATCH] D140454: [RISCV] Optimize (select (x in [0, 1] != 0), y, (z ^ y) ) -> ((x-1) & z ) ^ y
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 09:41:22 PST 2022
craig.topper added a comment.
In D140454#4010211 <https://reviews.llvm.org/D140454#4010211>, @asb wrote:
> Reviewing this in isolation, LGTM. It's going to conflict with D140465 <https://reviews.llvm.org/D140465> though so I'm not sure what your plan is there?
I will abandon this patch. The select rabbit hole kept getting deeper after I wrote this patch. I'll extract the new tests from it though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140454/new/
https://reviews.llvm.org/D140454
More information about the llvm-commits
mailing list