aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/optimizer.go
diff options
context:
space:
mode:
authorNia Waldvogel <[email protected]>2021-12-31 13:51:47 -0500
committerNia <[email protected]>2022-01-19 14:42:02 -0500
commit0c2fefa09b4b7751d9b325e2418c8813b5929537 (patch)
tree5766c9516e0c01f377a5982b39c1ef722c410e39 /transform/optimizer.go
parentea2a6b70b209b4760ec82cb4a64417de9c3668e4 (diff)
downloadtinygo-0c2fefa09b4b7751d9b325e2418c8813b5929537.tar.gz
tinygo-0c2fefa09b4b7751d9b325e2418c8813b5929537.zip
transform: remove switched func lowering
The switched func lowering was mainly necessary for coroutines. With coroutines removed, this is no longer necessary.
Diffstat (limited to 'transform/optimizer.go')
-rw-r--r--transform/optimizer.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/transform/optimizer.go b/transform/optimizer.go
index ab90ca7cd..0c1d8a8f2 100644
--- a/transform/optimizer.go
+++ b/transform/optimizer.go
@@ -78,10 +78,6 @@ func Optimize(mod llvm.Module, config *compileopts.Config, optLevel, sizeLevel i
return errs
}
- if config.FuncImplementation() == "switch" {
- LowerFuncValues(mod)
- }
-
// After interfaces are lowered, there are many more opportunities for
// interprocedural optimizations. To get them to work, function
// attributes have to be updated first.
@@ -102,9 +98,6 @@ func Optimize(mod llvm.Module, config *compileopts.Config, optLevel, sizeLevel i
return []error{err}
}
LowerReflect(mod)
- if config.FuncImplementation() == "switch" {
- LowerFuncValues(mod)
- }
errs := LowerInterrupts(mod)
if len(errs) > 0 {
return errs