[llvm] [X86][CodeGen] Support lowering for CCMP/CTEST (PR #91747)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Sat May 25 20:34:00 PDT 2024


================
@@ -1801,11 +1801,8 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
 
     if (N->getNumValues() == RV->getNumValues())
       DAG.ReplaceAllUsesWith(N, RV.getNode());
-    else {
-      assert(N->getValueType(0) == RV.getValueType() &&
-             N->getNumValues() == 1 && "Type mismatch");
----------------
phoebewang wrote:

This can help to catch unexpected nodes. Do we need to remove both?

https://github.com/llvm/llvm-project/pull/91747


More information about the llvm-commits mailing list