tinygo/transform/testdata
Ayke van Laethem a896f7f218 transform: fix bug in StringToBytes optimization pass
Previously, this pass would convert any read-only use of a
runtime.stringToBytes call to use the original string buffer instead.
This is incorrect: if there are any writes to the resulting buffer, none
of the slice buffer pointers can be converted to use the original
read-only string buffer.

This commit fixes that bug and adds a test to prove the new (correct)
behavior.
2023-09-23 07:48:43 -07:00
..
allocs.ll transform: update allocs test to opaque pointers 2023-03-16 13:46:03 -07:00
allocs.out.ll transform: update allocs test to opaque pointers 2023-03-16 13:46:03 -07:00
allocs2.go compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
gc-stackslots.ll transform: update gc-stackslots test to opaque pointers 2023-03-16 13:46:03 -07:00
gc-stackslots.out.ll transform: update gc-stackslots test to opaque pointers 2023-03-16 13:46:03 -07:00
interface.ll transform: update interface test to opaque pointers 2023-03-16 13:46:03 -07:00
interface.out.ll transform: update interface test to opaque pointers 2023-03-16 13:46:03 -07:00
interrupt.ll transform: update interrupt test to opaque pointers 2023-03-16 13:46:03 -07:00
interrupt.out.ll transform: update interrupt test to opaque pointers 2023-03-16 13:46:03 -07:00
maps.ll transform: update maps test to opaque pointers 2023-03-16 13:46:03 -07:00
maps.out.ll transform: update maps test to opaque pointers 2023-03-16 13:46:03 -07:00
panic.ll transform: update panic test to opaque pointers 2023-03-16 13:46:03 -07:00
panic.out.ll transform: update panic test to opaque pointers 2023-03-16 13:46:03 -07:00
reflect-implements.ll transform: fix OptimizeReflectImplements pass for new named elem offset 2023-03-19 17:45:43 +01:00
reflect-implements.out.ll transform: fix OptimizeReflectImplements pass for new named elem offset 2023-03-19 17:45:43 +01:00
reflect.go transform: split interface and reflect lowering 2021-05-03 20:10:49 +02:00
stacksize.ll transform: update stacksize test to opaque pointers 2023-03-16 13:46:03 -07:00
stacksize.out.ll transform: update stacksize test to opaque pointers 2023-03-16 13:46:03 -07:00
stringequal.ll transform: update stringequal test to opaque pointers 2023-03-16 13:46:03 -07:00
stringequal.out.ll transform: update stringequal test to opaque pointers 2023-03-16 13:46:03 -07:00
stringtobytes.ll transform: fix bug in StringToBytes optimization pass 2023-09-23 07:48:43 -07:00
stringtobytes.out.ll transform: fix bug in StringToBytes optimization pass 2023-09-23 07:48:43 -07:00