[PATCH] D148275: [InstCombine] support fold select(X|Y,X|Y,X) to X|Y

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 16 16:24:36 PDT 2023


goldstein.w.n added inline comments.


================
Comment at: llvm/test/Transforms/InstSimplify/select_or_and.ll:11
+  %or = or i32 %y, %x
+  %cmp = icmp eq i32 %or, 0
+  %ret = select i1 %cmp, i32 %x, i32 %or
----------------
Can you split the next tests to a prior patch so we can see the diff this patch generates?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148275/new/

https://reviews.llvm.org/D148275



More information about the llvm-commits mailing list