tinygo/transform
Ayke van Laethem 25dac32a88 transform: use IPSCCP pass instead of the constant propagation pass
The constant propagation pass is removed in LLVM 12, so this pass needs
to be replaced anyway. The direct replacement would be the SCCP (sparse
conditional constant propagation) pass, but perhaps a better replacement
is the IPSCCP pass, which is an interprocedural version of the SCCP
pass and propagates constants across function calls if possible.

This is not always a code size reduction, but it appears to reduce code
size in a majority of cases. It certainly reduces code size in almost
all WebAssembly tests I did.
2021-04-08 12:31:26 +02:00
..
testdata transform: don't rely on struct name of runtime.typecodeID 2021-04-08 11:40:59 +02:00
allocs.go
allocs_test.go
coroutines.go transform: show better error message in coroutines lowering 2021-03-05 14:42:43 +01:00
errors.go
func-lowering.go
func-lowering_test.go compiler: refactor func lowering to the transform package 2019-12-04 22:19:49 +01:00
gc.go
gc_test.go
globals.go
globals_test.go
goroutine_test.go
interface-lowering.go
interface-lowering_test.go
interrupt.go builder: add optsize attribute while building the package 2021-04-08 11:40:59 +02:00
interrupt_test.go
llvm.go runtime/fe310: add support for PLIC interrupts 2020-01-27 19:58:39 +01:00
maps.go
maps_test.go
optimizer.go
panic.go compiler: move ReplacePanicsWithTrap pass to transforms 2019-11-16 18:41:28 +01:00
panic_test.go
reflect.go
rtcalls.go
rtcalls_test.go transform: optimize reflect.Type Implements() method 2021-03-28 14:00:37 +02:00
stacksize.go
stacksize_test.go
transform.go all: refactor heap-to-stack transform into the transform package 2019-09-15 21:26:27 +02:00
transform_test.go
util.go
wasm-abi.go builder: add optsize attribute while building the package 2021-04-08 11:40:59 +02:00
wasm-abi_test.go compiler: move wasm ABI workaround to transform package 2020-01-28 19:29:09 +01:00