[llvm] 66e15d4 - [NFC] [Coroutines] Update the comments for lowering coro.save

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 23:57:53 PDT 2022


Author: Chuanqi Xu
Date: 2022-07-07T14:57:41+08:00
New Revision: 66e15d4c01a9ac6898154d146e9b21b9ab843784

URL: https://github.com/llvm/llvm-project/commit/66e15d4c01a9ac6898154d146e9b21b9ab843784
DIFF: https://github.com/llvm/llvm-project/commit/66e15d4c01a9ac6898154d146e9b21b9ab843784.diff

LOG: [NFC] [Coroutines] Update the comments for lowering coro.save

The original comment is not right. We don't store 0 all the time.

Added: 
    

Modified: 
    llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index ead552d9be4e2..9c1b247cdb396 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -389,7 +389,7 @@ static void createResumeEntryBlock(Function &F, coro::Shape &Shape) {
 
     // Replace CoroSave with a store to Index:
     //    %index.addr = getelementptr %f.frame... (index field number)
-    //    store i32 0, i32* %index.addr1
+    //    store i32 %IndexVal, i32* %index.addr1
     auto *Save = S->getCoroSave();
     Builder.SetInsertPoint(Save);
     if (S->isFinal()) {


        


More information about the llvm-commits mailing list