[PATCH] D123748: [ValueTracking] Added support to deduce PHI Nodes values being a power of 2
    Guozhi Wei via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Apr 14 18:18:57 PDT 2022
    
    
  
Carrot added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2173
+  if (const PHINode *PN = dyn_cast<PHINode>(V)) {
+    unsigned NewDepth = std::max(Depth, MaxAnalysisRecursionDepth - 1);
+    Query RecQ = Q;
----------------
Please add a comment here. I searched the source code for a while to understand its purpose.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123748/new/
https://reviews.llvm.org/D123748
    
    
More information about the llvm-commits
mailing list