[PATCH] D149199: [SelectionDAG] Fill in some more cases in `isKnownNeverZero`

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 06:39:07 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:5078
+    // The expression is really !Known.One[BitWidth-MaxLog2(Known):0].isZero()
+    if (computeKnownBits(Op.getOperand(0)).One[0], Depth + 1)
       return true;
----------------
goldstein.w.n wrote:
> RKSimon wrote:
> > This looks like a bad merge?
> hmm?
Sorry, I think I was miscounting brackets :) 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149199



More information about the llvm-commits mailing list