[PATCH] D92183: [DAG] Legalize umin(x,y) -> sub(x,usubsat(x,y)) and umax(x,y) -> add(x,usubsat(y,x)) iff usubsat is legal

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 17:36:04 PST 2020


pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:26969
-  if (VT == MVT::v8i16) {
-    assert((Opcode == ISD::UMIN || Opcode == ISD::UMAX) &&
-           "Unexpected MIN/MAX opcode");
----------------
Nit: is it better to remove the custom declaration for them?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92183



More information about the llvm-commits mailing list