[llvm] [RISC-V][ISel] Remove redundant czero.eqz like 'czero.eqz a0,  a0, a0' (PR #90208)
    Yeting Kuo via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Apr 26 16:03:01 PDT 2024
    
    
  
================
@@ -7503,6 +7503,25 @@ SDValue RISCVTargetLowering::lowerSELECT(SDValue Op, SelectionDAG &DAG) const {
       return DAG.getNode(ISD::ADD, DL, VT, CMOV, RHSVal);
     }
 
+    if (CondV.getOpcode() == ISD::SETCC) {
----------------
yetingk wrote:
Should it be restricted by hasConditionalMoveFusion ?
https://github.com/llvm/llvm-project/pull/90208
    
    
More information about the llvm-commits
mailing list