[PATCH] D108077: [InstCombine] Add call to matchSignedSaturate from min/max

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 14 14:53:44 PDT 2021


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:2281
   // the two items of min/max (the compare and the select).
   if (MinMax2->hasNUsesOrMore(3) || Base->hasNUsesOrMore(3))
     return nullptr;
----------------
These "one-use" checks aren't going to work correctly for the intrinsic form, where we don't have the duplicate cmp+select use.


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

https://reviews.llvm.org/D108077



More information about the llvm-commits mailing list