[PATCH] D146350: [InstCombine] More aggressively try and fold irem/idiv/mul into selects.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 18 15:03:23 PDT 2023


nikic requested changes to this revision.
nikic added a comment.
This revision now requires changes to proceed.

This is not generally legal for div/rem, see https://alive2.llvm.org/ce/z/2iiR26 using one of your tests. This is only legal if the operation is speculatable.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146350



More information about the llvm-commits mailing list