[PATCH] D98857: [DAG] computeKnownBits - add ISD::MULHS/ISD::MULHU handling
    Simonas Kazlauskas via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 18 16:25:29 PDT 2021
    
    
  
nagisa added a comment.
I think you may be able to quite easily add a case for S/UMUL_LOHI here as well (but unsure if its necessary, just noticing that its not explicitly handled here)
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2983
+  case ISD::MULHU: {
+    // mulhu(x,y) -> trunc(srl(mul(zext(x),zext(y)),bw)).
+    Known = computeKnownBits(Op.getOperand(1), DemandedElts, Depth + 1);
----------------
What does this (and a similar one below) comment signify?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98857/new/
https://reviews.llvm.org/D98857
    
    
More information about the llvm-commits
mailing list