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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 01:44:11 PDT 2023


nikic added a reviewer: nikic.
nikic added a comment.

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.


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