tinygo/transform/testdata
Ayke van Laethem ab47cea055 transform: improve GC stack slot pass to work around a bug
Bug 1790 ("musttail call must precede a ret with an optional bitcast")
is caused by the GC stack slot pass inserting a store instruction
between a musttail call and a return instruction. This is not allowed in
LLVM IR.

One solution would be to remove the musttail. That would probably work,
but 1) the go-llvm API doesn't support this and 2) this might have
unforeseen consequences. What I've done in this commit is to move the
store instruction to a position earlier in the basic block, just after
the last access to the GC stack slot alloca.

Thanks to @fgsch for a very small repro, which I've used as a regression
test.
2021-08-04 20:06:59 +02:00
..
allocs.ll
allocs.out.ll
allocs2.go
coroutines.ll arm: automatically determine stack sizes 2020-08-27 19:23:22 +02:00
coroutines.out.ll
func-lowering.ll
func-lowering.out.ll
gc-globals.ll
gc-globals.out.ll
gc-stackslots.ll
gc-stackslots.out.ll
globals-function-sections.ll
globals-function-sections.out.ll
interface.ll compiler: refactor method names 2021-06-17 12:17:32 +02:00
interface.out.ll transform: split interface and reflect lowering 2021-05-03 20:10:49 +02:00
interrupt-avr.ll
interrupt-avr.out.ll
interrupt-cortexm.ll
interrupt-cortexm.out.ll
maps.ll
maps.out.ll all: move OptimizeMaps to transforms and add tests 2019-09-15 21:26:27 +02:00
panic.ll
panic.out.ll
reflect-implements.ll compiler: refactor method names 2021-06-17 12:17:32 +02:00
reflect-implements.out.ll
reflect.go
stacksize.ll
stacksize.out.ll
stringequal.ll transform: optimize string comparisons against "" 2021-03-18 17:22:00 +01:00
stringequal.out.ll transform: optimize string comparisons against "" 2021-03-18 17:22:00 +01:00
stringtobytes.ll compiler: move OptimizeStringToBytes to transform package 2019-09-22 08:25:50 +02:00
stringtobytes.out.ll
wasm-abi.ll
wasm-abi.out.ll main: switch to LLVM 10 2020-04-09 20:23:51 +02:00