[PATCH] D70752: LowerDbgDeclare: look through bitcasts.
    Adrian Prantl via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Dec  2 11:20:13 PST 2019
    
    
  
aprantl added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:1425
+    SmallVector<const Value *, 8> WorkList;
+    WorkList.push_back(AI);
+    while (!WorkList.empty()) {
----------------
I think the worklist is overkill here, since it will contain at most one element. How about turning the loop body into a helper function/lambda and calling it recursively?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70752/new/
https://reviews.llvm.org/D70752
    
    
More information about the llvm-commits
mailing list