@@ -84,10 +84,10 @@ entry:
8484  %2  = insertvalue  %runtime._string  zeroinitializer , ptr  %b.data , 0 
8585  %3  = insertvalue  %runtime._string  %2 , i32  %b.len , 1 
8686  %stackalloc  = alloca  i8 , align  1 
87-   %4  = call  i1  @runtime.stringLess (ptr  %a.data , i32  %a.len , ptr  %b.data , i32  %b.len , ptr  undef ) #4 
87+   %4  = call  i1  @runtime.stringLess (ptr  %a.data , i32  %a.len , ptr  %b.data , i32  %b.len , ptr  undef ) #5 
8888  %5  = select  i1  %4 , %runtime._string  %1 , %runtime._string  %3 
8989  %6  = extractvalue  %runtime._string  %5 , 0 
90-   call  void  @runtime.trackPointer (ptr  %6 , ptr  nonnull  %stackalloc , ptr  undef ) #4 
90+   call  void  @runtime.trackPointer (ptr  %6 , ptr  nonnull  %stackalloc , ptr  undef ) #5 
9191  ret  %runtime._string  %5 
9292}
9393
@@ -123,30 +123,48 @@ entry:
123123  %2  = insertvalue  %runtime._string  zeroinitializer , ptr  %b.data , 0 
124124  %3  = insertvalue  %runtime._string  %2 , i32  %b.len , 1 
125125  %stackalloc  = alloca  i8 , align  1 
126-   %4  = call  i1  @runtime.stringLess (ptr  %b.data , i32  %b.len , ptr  %a.data , i32  %a.len , ptr  undef ) #4 
126+   %4  = call  i1  @runtime.stringLess (ptr  %b.data , i32  %b.len , ptr  %a.data , i32  %a.len , ptr  undef ) #5 
127127  %5  = select  i1  %4 , %runtime._string  %1 , %runtime._string  %3 
128128  %6  = extractvalue  %runtime._string  %5 , 0 
129-   call  void  @runtime.trackPointer (ptr  %6 , ptr  nonnull  %stackalloc , ptr  undef ) #4 
129+   call  void  @runtime.trackPointer (ptr  %6 , ptr  nonnull  %stackalloc , ptr  undef ) #5 
130130  ret  %runtime._string  %5 
131131}
132132
133+ ; Function Attrs: nounwind 
134+ define  hidden  void  @main.clearSlice (ptr  %s.data , i32  %s.len , i32  %s.cap , ptr  %context ) unnamed_addr  #2  {
135+ entry:
136+   %0  = shl  i32  %s.len , 2 
137+   call  void  @llvm.memset.p0.i32 (ptr  align  4  %s.data , i8  0 , i32  %0 , i1  false )
138+   ret  void 
139+ }
140+ 
141+ ; Function Attrs: argmemonly nocallback nofree nounwind willreturn writeonly 
142+ declare  void  @llvm.memset.p0.i32 (ptr  nocapture  writeonly , i8 , i32 , i1  immarg) #3 
143+ 
144+ ; Function Attrs: nounwind 
145+ define  hidden  void  @main.clearZeroSizedSlice (ptr  %s.data , i32  %s.len , i32  %s.cap , ptr  %context ) unnamed_addr  #2  {
146+ entry:
147+   ret  void 
148+ }
149+ 
133150; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn 
134- declare  i32  @llvm.smin.i32 (i32 , i32 ) #3 
151+ declare  i32  @llvm.smin.i32 (i32 , i32 ) #4 
135152
136153; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn 
137- declare  i8  @llvm.umin.i8 (i8 , i8 ) #3 
154+ declare  i8  @llvm.umin.i8 (i8 , i8 ) #4 
138155
139156; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn 
140- declare  i32  @llvm.umin.i32 (i32 , i32 ) #3 
157+ declare  i32  @llvm.umin.i32 (i32 , i32 ) #4 
141158
142159; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn 
143- declare  i32  @llvm.smax.i32 (i32 , i32 ) #3 
160+ declare  i32  @llvm.smax.i32 (i32 , i32 ) #4 
144161
145162; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn 
146- declare  i32  @llvm.umax.i32 (i32 , i32 ) #3 
163+ declare  i32  @llvm.umax.i32 (i32 , i32 ) #4 
147164
148165attributes  #0  = { allockind("alloc,zeroed" ) allocsize(0 ) "alloc-family" ="runtime.alloc"  "target-features" ="+bulk-memory,+nontrapping-fptoint,+sign-ext"  }
149166attributes  #1  = { "target-features" ="+bulk-memory,+nontrapping-fptoint,+sign-ext"  }
150167attributes  #2  = { nounwind  "target-features" ="+bulk-memory,+nontrapping-fptoint,+sign-ext"  }
151- attributes  #3  = { nocallback nofree nosync nounwind  readnone  speculatable willreturn }
152- attributes  #4  = { nounwind  }
168+ attributes  #3  = { argmemonly  nocallback nofree nounwind  willreturn writeonly  }
169+ attributes  #4  = { nocallback nofree nosync nounwind  readnone  speculatable willreturn }
170+ attributes  #5  = { nounwind  }
0 commit comments