[PATCH] D89768: [Coroutine] Properly determine whether an alloca should live on the frame
    JunMa via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 27 08:00:21 PDT 2020
    
    
  
junparser added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:2040
+                             *Shape.CoroBegin, Checker};
+    Visitor.visitPtr(*AI);
+    if (!Visitor.getShouldLiveOnFrame())
----------------
we can call this at the beginning of this function, and then sink the aliases after coro.begin as we do in rewriteMaterializableInstructions, keep the original logic unchanged. 
I think we can even deal with unknown offset.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89768/new/
https://reviews.llvm.org/D89768
    
    
More information about the llvm-commits
mailing list