[PATCH] D150360: [InstSimplify] Optimize compares with multiple selects as operands

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 09:19:27 PDT 2023


goldstein.w.n added a comment.

In D150360#4352188 <https://reviews.llvm.org/D150360#4352188>, @nikic wrote:

> I think it would be better to implement this more general transform in InstCombine: https://alive2.llvm.org/ce/z/aN8q7S In the case where the new comparison constant-folds it reduces to what you're implementing here.

+1


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150360



More information about the llvm-commits mailing list