summaryrefslogtreecommitdiff
path: root/test/min.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-04-30 11:19:10 -0700
committerGitHub <noreply@github.com>2018-04-30 11:19:10 -0700
commit032ddd6a88bf608953c76422c317eb5aa875985e (patch)
treea7613289bcc72230175610971c75d1ff8b266dbf /test/min.fromasm.imprecise
parent23f53674fc7aed90313cc70cbdde7dffa0ea6a5b (diff)
downloadbinaryen-032ddd6a88bf608953c76422c317eb5aa875985e.tar.gz
binaryen-032ddd6a88bf608953c76422c317eb5aa875985e.tar.bz2
binaryen-032ddd6a88bf608953c76422c317eb5aa875985e.zip
do more optimizations after inlining: precompute-propagate plus all regular opts (#1523)
Diffstat (limited to 'test/min.fromasm.imprecise')
-rw-r--r--test/min.fromasm.imprecise7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/min.fromasm.imprecise b/test/min.fromasm.imprecise
index 444551428..85ab1cc04 100644
--- a/test/min.fromasm.imprecise
+++ b/test/min.fromasm.imprecise
@@ -26,14 +26,17 @@
)
)
(func $legalstub$neg (; 3 ;) (param $0 i32) (param $1 i32) (result f64)
+ (local $2 i32)
(i32.store
- (get_local $0)
+ (tee_local $2
+ (get_local $0)
+ )
(get_local $1)
)
(f64.promote/f32
(f32.neg
(f32.load
- (get_local $0)
+ (get_local $2)
)
)
)