diff options
author | Alon Zakai <azakai@google.com> | 2019-03-06 14:21:07 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2019-03-06 16:34:34 -0800 |
commit | 7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236 (patch) | |
tree | ad2a1c076f5f450a2a9aaee6c4077bff0108971e /test/dynamicLibrary.fromasm.imprecise | |
parent | 83aa0dc2daf327ed264cc22e51af1a866787a764 (diff) | |
download | binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.tar.gz binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.tar.bz2 binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.zip |
CoalesceLocals: run even if we have just 1 var, as we may be able to remove that one var by reusing a param
Diffstat (limited to 'test/dynamicLibrary.fromasm.imprecise')
-rw-r--r-- | test/dynamicLibrary.fromasm.imprecise | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/dynamicLibrary.fromasm.imprecise b/test/dynamicLibrary.fromasm.imprecise index 23e877917..9c5b5c7c3 100644 --- a/test/dynamicLibrary.fromasm.imprecise +++ b/test/dynamicLibrary.fromasm.imprecise @@ -13,8 +13,7 @@ (export "runPostSets" (func $runPostSets)) (export "_global" (global $_global)) (func $__ZN3FooC2Ev (; 2 ;) (; has Stack IR ;) (param $0 i32) - (local $1 i32) - (local.set $1 + (local.set $0 (global.get $STACKTOP) ) (global.set $STACKTOP @@ -38,7 +37,7 @@ ) ) (global.set $STACKTOP - (local.get $1) + (local.get $0) ) ) (func $runPostSets (; 3 ;) (; has Stack IR ;) |