![]() 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. |
||
---|---|---|
.. | ||
testdata | ||
allocs.go | ||
allocs_test.go | ||
coroutines.go | ||
errors.go | ||
func-lowering.go | ||
func-lowering_test.go | ||
gc.go | ||
gc_test.go | ||
globals.go | ||
globals_test.go | ||
goroutine_test.go | ||
interface-lowering.go | ||
interface-lowering_test.go | ||
interrupt.go | ||
interrupt_test.go | ||
llvm.go | ||
maps.go | ||
maps_test.go | ||
optimizer.go | ||
panic.go | ||
panic_test.go | ||
reflect.go | ||
rtcalls.go | ||
rtcalls_test.go | ||
stacksize.go | ||
stacksize_test.go | ||
transform.go | ||
transform_test.go | ||
util.go | ||
wasm-abi.go | ||
wasm-abi_test.go |