[llvm] [DAGCombiner][RISCV] Add target hook to decide hoisting LogicOp with extension (PR #136677)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 07:42:51 PDT 2025


================
@@ -5981,6 +5981,9 @@ SDValue DAGCombiner::hoistLogicOpWithSameOpcodeHands(SDNode *N) {
          HandOpcode == ISD::ANY_EXTEND_VECTOR_INREG) &&
         LegalTypes && !TLI.isTypeDesirableForOp(LogicOpcode, XVT))
       return SDValue();
+    // If it is not desirable to hoist LogicOp with extension.
----------------
lukel97 wrote:

You can probably drop the comment, I think the name of the hook explains it well enough

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


More information about the llvm-commits mailing list