Files
tinygo/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
..
2021-05-21 17:54:13 +02:00
2019-09-20 10:35:49 +02:00
2019-09-20 10:35:49 +02:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2020-01-27 19:01:55 +01:00
2021-05-26 20:21:08 +02:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2021-04-21 07:37:22 +02:00
2021-04-21 07:37:22 +02:00
2019-02-05 19:37:21 +01:00
2019-02-05 19:37:21 +01:00
2020-10-02 11:26:22 +02:00
2020-10-02 11:26:22 +02:00
2021-05-22 21:41:06 +02:00
2021-04-12 14:49:26 +02:00
2018-10-20 17:22:51 +02:00
2020-10-23 21:37:35 +02:00
2020-10-23 21:37:35 +02:00
2019-10-13 23:07:47 +02:00
2019-10-13 23:07:47 +02:00
2020-05-12 01:17:27 +02:00