[PATCH] D83139: [InstCombine] Always try to invert non-canonical predicate of an icmp feeding select

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 11:17:29 PDT 2020


nikic added a comment.

I'm wondering if it would make sense to treat this as a more general transform that starts from the icmp, rather than the select. I'm assuming the same issue principally also applied to, say, an icmp used in a br. Though probably the implementation would have to directly invert the users in that case, to avoid looping.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83139





More information about the llvm-commits mailing list