transform: allow updating tests with -update flag

This should make it much easier to update existing tests.
This commit is contained in:
Ayke van Laethem
2020-04-01 20:49:48 +02:00
committed by Ron Evans
parent 5308e8903e
commit 584e94ce2f
5 changed files with 73 additions and 44 deletions
+4 -2
View File
@@ -54,13 +54,15 @@ define void @testNonEscapingLoop() {
entry:
%stackalloc.alloca = alloca [1 x i32]
br label %loop
loop:
loop: ; preds = %loop, %entry
store [1 x i32] zeroinitializer, [1 x i32]* %stackalloc.alloca
%stackalloc = bitcast [1 x i32]* %stackalloc.alloca to i32*
%0 = call i32* @noescapeIntPtr(i32* %stackalloc)
%1 = icmp eq i32* null, %0
br i1 %1, label %loop, label %end
end:
end: ; preds = %loop
ret void
}