tinygo/interp/testdata
Ayke van Laethem 19dec048b0 compiler: do not check for impossible type asserts
Previously there was code to avoid impossible type asserts but it wasn't
great and in fact was too aggressive when combined with reflection.

This commit improves this by checking all types that exist in the
program that may appear in an interface (even struct fields and the
like) but without creating runtime.typecodeID objects with the type
assert. This has two advantages:

  * As mentioned, it optimizes impossible type asserts away.
  * It allows methods on types that were only asserted on (in
    runtime.typeAssert) but never used in an interface to be optimized
    away using GlobalDCE. This may have a cascading effect so that other
    parts of the code can be further optimized.

This sometimes massively improves code size and mostly negates the code
size regression of the previous commit.
2021-03-23 14:32:33 +01:00
..
basic.ll interp: rewrite entire package 2020-12-22 15:54:23 +01:00
basic.out.ll interp: rewrite entire package 2020-12-22 15:54:23 +01:00
consteval.ll interp: support integer icmp of ptrtoint 2019-11-26 14:43:05 +01:00
consteval.out.ll interp: support integer icmp of ptrtoint 2019-11-26 14:43:05 +01:00
interface.ll compiler: do not check for impossible type asserts 2021-03-23 14:32:33 +01:00
interface.out.ll interp: add support for constant type asserts 2020-03-20 22:22:24 +01:00
map.ll interp: rewrite entire package 2020-12-22 15:54:23 +01:00
map.out.ll interp: rewrite entire package 2020-12-22 15:54:23 +01:00
slice-copy.ll interp: implement runtime.sliceCopy 2019-09-24 18:16:43 +02:00
slice-copy.out.ll interp: rewrite entire package 2020-12-22 15:54:23 +01:00