[PATCH] D142535: [DAGCombine] Fold redundant select

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 22:16:07 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:10921
+        auto IsGreaterLess = [](ISD::CondCode CC) {
+          return CC == ISD::SETLT || CC == ISD::SETULT ||
+                 CC == ISD::SETGT || CC == ISD::SETUGT;
----------------
Could this have ISD::SETNE too?


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

https://reviews.llvm.org/D142535



More information about the llvm-commits mailing list