[llvm] 23882f0 - Fix test/Transforms/Coroutines/coro-materialize.ll

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 26 05:41:22 PDT 2025


Author: Hans Wennborg
Date: 2025-03-26T13:38:28+01:00
New Revision: 23882f09e40a33de95963dbe345450615489b55b

URL: https://github.com/llvm/llvm-project/commit/23882f09e40a33de95963dbe345450615489b55b
DIFF: https://github.com/llvm/llvm-project/commit/23882f09e40a33de95963dbe345450615489b55b.diff

LOG: Fix test/Transforms/Coroutines/coro-materialize.ll

It was using the wrong @llvm.coro.suspend() value in %resume1.

This was found while investigating #130326

Added: 
    

Modified: 
    llvm/test/Transforms/Coroutines/coro-materialize.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Coroutines/coro-materialize.ll b/llvm/test/Transforms/Coroutines/coro-materialize.ll
index 8de81c3b8cfd3..3bf1360001dc7 100644
--- a/llvm/test/Transforms/Coroutines/coro-materialize.ll
+++ b/llvm/test/Transforms/Coroutines/coro-materialize.ll
@@ -28,7 +28,7 @@ entry:
 resume1:
   %inc2 = add i32 %inc1, 1
   %sp2 = call i8 @llvm.coro.suspend(token none, i1 false)
-  switch i8 %sp1, label %suspend [i8 0, label %resume2
+  switch i8 %sp2, label %suspend [i8 0, label %resume2
                                   i8 1, label %cleanup]
 
 resume2:
@@ -60,7 +60,7 @@ entry:
 resume1:
   %inc2 = add i32 %inc1, 1
   %sp2 = call i8 @llvm.coro.suspend(token none, i1 false)
-  switch i8 %sp1, label %suspend [i8 0, label %resume2
+  switch i8 %sp2, label %suspend [i8 0, label %resume2
                                   i8 1, label %cleanup]
 
 resume2:
@@ -96,7 +96,7 @@ entry:
 resume1:
   %inc7 = add i32 %inc6, 1
   %sp2 = call i8 @llvm.coro.suspend(token none, i1 false)
-  switch i8 %sp1, label %suspend [i8 0, label %resume2
+  switch i8 %sp2, label %suspend [i8 0, label %resume2
                                   i8 1, label %cleanup]
 
 resume2:
@@ -132,7 +132,7 @@ entry:
 resume1:
   %inc7 = add i32 %inc6, 1
   %sp2 = call i8 @llvm.coro.suspend(token none, i1 false)
-  switch i8 %sp1, label %suspend [i8 0, label %resume2
+  switch i8 %sp2, label %suspend [i8 0, label %resume2
                                   i8 1, label %cleanup]
 
 resume2:
@@ -173,7 +173,7 @@ entry:
 resume1:
   %inc12 = add i32 %inc7, 1
   %sp2 = call i8 @llvm.coro.suspend(token none, i1 false)
-  switch i8 %sp1, label %suspend [i8 0, label %resume2
+  switch i8 %sp2, label %suspend [i8 0, label %resume2
                                   i8 1, label %cleanup]
 
 resume2:


        


More information about the llvm-commits mailing list