tinygo/transform/testdata
Ayke van Laethem f9865a08bc transform: optimize string comparisons against ""
This optimizes a common pattern like:

    if s != "" {
        ...
    }

to:

    if len(s) != 0 {
        ...
    }

This avoids a runtime call and thus produces slightly better code.
2021-03-18 17:22:00 +01:00
..
allocs.ll
allocs.out.ll
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 transform: introduce check for method calls on nil interfaces 2020-05-28 13:42:36 +02:00
interface.out.ll transform: introduce check for method calls on nil interfaces 2020-05-28 13:42:36 +02:00
interrupt-avr.ll
interrupt-avr.out.ll
interrupt-cortexm.ll
interrupt-cortexm.out.ll
maps.ll all: move OptimizeMaps to transforms and add tests 2019-09-15 21:26:27 +02:00
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
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