tinygo/transform/testdata
Ayke van Laethem 3edcdb5f0d compiler: do not emit nil checks for loading closure variables
Closure variables are allocated in a parent function and are thus never
nil. Don't do a nil check before reading or modifying the value.

This commit results in a slight reduction in code size in some test
cases: calls.go, channel.go, goroutines.go, json.go, sort.go -
presumably wherever closures are used.
2021-05-26 20:21:08 +02:00
..
allocs.ll transform: do not lower zero-sized alloc to alloca 2021-04-12 08:11:28 +02:00
allocs.out.ll
allocs2.go compiler: do not emit nil checks for loading closure variables 2021-05-26 20:21:08 +02:00
coroutines.ll
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
interface.out.ll
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 compiler: move ReplacePanicsWithTrap pass to transforms 2019-11-16 18:41:28 +01:00
reflect-implements.ll transform: optimize reflect.Type Implements() method 2021-03-28 14:00:37 +02:00
reflect-implements.out.ll transform: optimize reflect.Type Implements() method 2021-03-28 14:00:37 +02:00
reflect.go
stacksize.ll arm: automatically determine stack sizes 2020-08-27 19:23:22 +02:00
stacksize.out.ll
stringequal.ll transform: optimize string comparisons against "" 2021-03-18 17:22:00 +01:00
stringequal.out.ll
stringtobytes.ll
stringtobytes.out.ll
wasm-abi.ll compiler: move wasm ABI workaround to transform package 2020-01-28 19:29:09 +01:00
wasm-abi.out.ll