Commit Graph

206 Commits

Author SHA1 Message Date
hwx1163501
f0631bfc68 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7Q61H
2023-08-03 10:19:06 +08:00
liuzhijie
7a7758d1a0 AOT Optimization - RangeGuard Pass Part-4
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7P758
Signed-off-by: liuzhijie <jay.lau2020.work@outlook.com>

Change-Id: If3b245223e3d5a9525e057e673da821fa331de1f
2023-07-31 11:41:00 +08:00
void_f
9d5702be3c NegativeIndexCheck Elimination
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7OP25
Signed-off-by: void_f <void_f@foxmail.com>

Change-Id: Iea144f0556b64934f9fd3c650170997cadab2abf
2023-07-28 17:31:01 +08:00
wu_zhang_da
5f474177a1 Optimize CreateArrayWithBuffer Instruction
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7KUJH

Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
Change-Id: I18a47544030568903aac09b8f02480da933e5e9f
2023-07-26 18:10:05 +08:00
void_f
589ef61429 CheckAndConvert Eliminition
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7N0P9
Signed-off-by: void_f <void_f@foxmail.com>

Change-Id: I7455ddac826dc3a74047aaf394612446602ffa90
2023-07-25 09:57:07 +08:00
dingding
25ee7e5685 AOT Type-Based Polymorphic Property Access
1. Support polymorphic named property access in TSHCRLowering.
2. Merge the process of loading and storing as access.
3. Intruduce a new class ObjectAccessHelper to let TSHCRLowering pay more
   attention to the process of graph.
4. Triple improvement in micro polymorphism performance test. (250->80)

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7LEDD

Signed-off-by: dingding <dingding5@huawei.com>
Change-Id: I00814e82fce2cd21a9d3743344ea47acc598719d
2023-07-23 10:08:00 +08:00
openharmony_ci
c1fd435e55
!4465 Add cow array check op
Merge pull request !4465 from xiaoweidong/CowArrayCheck
2023-07-20 06:22:18 +00:00
xiaoweidong
297e365eab Add COW_ARRAY_CHECK op to eliminate redundant check
Issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7LWOS

Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2023-07-20 12:36:16 +08:00
yuanyao
d0fd1a088f AOT Optimization - Add RangeGuard Pass Part-1
Issue: I7M53L

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I833de4e73d2aaf2f6036cbb14a72a864b3ba6f67
2023-07-20 09:41:28 +08:00
void_f
2d064ecd43 Fix StoreElement and LoadConstOffset
issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7LPO6
Signed-off-by: void_f <void_f@foxmail.com>

Change-Id: I78ff532f45466ee1fca79b462ae539b2fff5efdc
2023-07-19 17:08:19 +08:00
openharmony_ci
2bafcd9845
!4454 Add MIR for LdLexVar and StLexVar
Merge pull request !4454 from 孙哲/work
2023-07-18 11:48:45 +00:00
openharmony_ci
ea267ae8b7
!4412 Add aot nogc call
Merge pull request !4412 from wpy111/master
2023-07-18 10:57:56 +00:00
sunzhe23
bd9b7009a5 Add MIR for LdLexVar and StLexVar
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7M1VF

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-07-18 17:06:04 +08:00
wupengyong
f0efab85b0 Reason:add aot no gc call
Description:add aot no gc call
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7KF8J?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I7d6599ce55c493894c42e42570b31be945c59701
2023-07-18 16:18:24 +08:00
yingguofeng@huawei.com
302571e5c6 Fix(Aot): TypeArray raw number and track field bugfix
Issue: #I7L6FC
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ifab3bf9ed90ebdf0d4e06171468da34d2e8ff977
2023-07-18 11:19:37 +08:00
ginxu
35a6763ba6 Unbind Framestate From Statesplit For Call BC
1. Unbind framestate and statesplt for call
2. Bugfix for inline
3. Pass inline parameter type

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7J64D

Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: Ib80feeb5f6f4af5bbcc6a110014f273a42e363f7
2023-07-14 09:19:23 +08:00
sunzhe23
65d069bab5 Support loop hoist for CheckAndConvert
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7I2FA
Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-07-03 20:18:01 +08:00
wu_zhang_da
fb1ecbe6c9 Optimize StownByIndex instruction
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I79KGM

Signed-off-by: wu_zhang_da <wuzhangda@huawei.com>
Change-Id: Ia3c374156d61e23a85d985c1d290ffc9bb233280
2023-06-30 16:55:45 +08:00
openharmony_ci
14e2b47d4b
!4313 Fastpath for Int32Array and Float64Array
Merge pull request !4313 from ChunyangWang/fastpath_for_array_of_int32_and_float64
2023-06-28 03:09:45 +00:00
K0u1hw
0303fcfd0f Description: Fastpath for Int32Array and Float64Array
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7G3YQ
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: I08c6fb61b02af0fe329c711428d95f5892a26717
2023-06-27 20:00:50 +08:00
yuanyao
95f3695642 AOT Refactor number speculative lowering deopt gate move to lcr lowering
Issue:I7F28Q

Signed-off-by: yuanyao <yuanyao14@huawei.com>
Change-Id: I75804a280299e5c14db4d3f83c98fccf79309f4b
2023-06-24 10:55:33 +08:00
sunzhe23
a9774d4efe Support Floating state gate
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I79K9W

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-06-09 10:13:24 +08:00
ginxu
9547f8b3bd Remove ConstData
1. Remove constadata to prevent node from entering entry bb

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7BDJV
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I1d9f799150cec3f895b82866b1251145fdda713c
2023-06-08 11:54:16 +08:00
openharmony_ci
4b04dda813
!4156 Fix stobjbyvalue for empty or COW array
Merge pull request !4156 from hzzhouzebin/FixStobjbyvalue
2023-06-04 10:54:12 +00:00
ginxu
56f3afc091 Add Function Call Timer Tools
1. Support print funcntion call time.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7AH1O
Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I9d6680852f7d497d13a127544fdb8331806bd480
2023-06-04 11:12:04 +08:00
wupengyong
efc0b12047 Reason:optimize fastcall
Description:optimize fastcall
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78093?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I1685c6b1341c82161d18e827f5449f90f7b1b634
2023-06-03 18:42:00 +08:00
hzzhouzebin
d9f48726ad Fix stobjbyvalue for empty or COW array
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I79RCW
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I2cc6b44944824974842ecb2dd03ccc9765e40465
2023-06-02 15:26:19 +08:00
weng-xi
6bb2ec5237 Optimize CreateEmptyArray instruction
Optimize CreateEmptyArray instruction

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I77TOL
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Ief29434f57eb34ae6f2efbafca88e85bd0e0db98
2023-05-24 14:12:52 +08:00
weng-xi
1fdab43856 Add new mir and pass to AOT
1. Add Mir about global env
2. Change the name of passes
3. Add a new pass

Issue: https://gitee.com/open_harmony/dashboard?issue_id=I73MRS
Signed-off-by: weng-xi <wengxi1@huawei.com>
Change-Id: Iaf26b1ac52d8a57c63ec3a683e11ad7656a0a92a
2023-05-22 15:03:57 +08:00
wupengyong
c0fa165ab0 Reason:add fast call and change calling conversion to cc
Description:add fast call and change calling conversion to cc
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6TTCX?from=project-issue

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I7c35619d73a4d961799232bc22b78b6513f65e71
2023-05-18 19:23:25 +08:00
ginxu
d88428b060 Some TsAot Inline Modification
1. Resolves conflicts between inline and loop optimizations
2. Adds an inline target check to prevent changes
3. Modify the framestate metadata structure
4. Add inline testcase

ISSUE:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I73MZY

Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I4256b3edce3e901afb67d48b0e649f39f6c251a4
2023-05-18 11:24:10 +08:00
sunzhe23
495983e5d2 Refactor State split,add state split linearizer
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I73OTM

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-05-17 09:30:03 +08:00
sunzhe23
aea766b87d Support number speculative lowering for IsTrue/isFalse
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7341I

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-05-15 17:39:47 +08:00
K0u1hw
87cdd57714 Description: Loop Analysis & Loop Peeling
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I71TRP
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: I9e8981b9b87679135edd11206e300411c4459eea
2023-05-13 14:58:49 +08:00
ginxu
2ac472acd9 Support Inline Deopt
1. Add frameStateChain op for inline deopt.
2. Modify the deopt logic to support multiple interpreter frames.
3. Fixed some bugs that occurred when inline was enabled.
4. Support trace inline function tools.
5. Add some testcases.
6. Add some inline condition which some scenarios that might occur inline are filtered.

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6USYJ

Signed-off-by: ginxu <xujie101@huawei.com>
Change-Id: I30127640fcd150c3c3badf2dd5c805a7b6733c42
2023-05-13 10:46:38 +08:00
wuzhefeng
979ffe634f Optimize Code Generation (Part-1)
Current code generator produces many redundant basic blocks, which
should be improved and optimized so as to reduce the size of the final
AOT-generated machine code's size and the compilation time.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I717U0

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I6f718c86384ae1ac5a6031a908ce2bbe7807daef
2023-05-09 10:53:16 +08:00
K0u1hw
8cfd1d8062 Description: fix benchmark llvm error
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6ZY7N
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: Ibd9c1a23b1dc8afecea62e803106de3cd85bcb57
2023-05-04 11:05:29 +08:00
wuzhefeng
6002abbef1 Implement debug information framework (Part-3)
To faciliate aot debuggging, we need to provide the ability of code
commenting, so we will add api of adding debug-information to our gate
compilation framework and pass the information to LLVM-IR. At last, the
generated machine code can be associated with specific code comments.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VRHQ

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I6a1eef5588231f3aa31cc6b2efea9667d0eda929
2023-04-26 14:19:53 +08:00
K0u1hw
38cf537f3e Description: Add Range Analysis Pass
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WSXJ
Signed-off-by: K0u1hw <wangchunyang15@huawei.com>

Change-Id: I32c205c659f0cffba34b845701614b1e9ec44b99
2023-04-24 10:52:18 +08:00
openharmony_ci
ca5fc8fe6f
!3942 Fix ConvertHoleAsUndefined type check bug
Merge pull request !3942 from 孙哲/master
2023-04-18 10:31:08 +00:00
openharmony_ci
ddca209283
!3934 Typed Jump IR
Merge pull request !3934 from ChunyangWang/TYPED_JUMP
2023-04-18 09:31:35 +00:00
sunzhe23
67a162b390 Fix ConvertHoleAsUndefined type check bug
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6WODV

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-04-18 15:06:31 +08:00
K0u1hw
c8de9ba945 Description: Add TypedJump IR
Issues: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VZQ6

Signed-off-by: K0u1hw <wangchunyang15@huawei.com>
Change-Id: I82f5d63f465290ab4ac4eaa24162afb194305e14
2023-04-17 15:26:58 +08:00
sunzhe23
d836805211 Add MIR for type lowering
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6VPXB

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-04-17 13:58:18 +08:00
yingguofeng@huawei.com
e705f7a167 Perf(Aot): nbody optimization
1. Optimize CallTargetCheck lowering
2. StoreProperty bugfix

Issue: #I6V1KU
Change-Id: I818c1df9454f745ff9245cdff9d9c4a45cbf282e
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-14 09:32:56 +08:00
openharmony_ci
3d3b176bc1
!3900 AOT optimization
Merge pull request !3900 from yingguofeng/master
2023-04-12 02:52:37 +00:00
yingguofeng@huawei.com
a0b1ce4001 Perf(aot): nbody optimization
1. Object super length change from taggedint to uint32
2. Optimize taggedint to int
3. Optimize builtins math.sqrt

Issue: #I6TVXW
Change-Id: Ibaa17cc55d18662606f2dedfba58c55a8eb3ffc4
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-04-12 09:44:10 +08:00
sunzhe23
dac942e759 Add Generic type lowering
1 Add HeapObject Check
2 Add ArrayGuardianCheck
3 Add HClassStableArrayCheck

Issue: I6UDR3

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-04-11 14:35:22 +08:00
openharmony_ci
23e69a0518
!3887 Fix Loop analysis DfsList bug
Merge pull request !3887 from 孙哲/master
2023-04-07 09:05:47 +00:00
sunzhe23
6d28b315bc Fix Loop analysis DfsList bug
Issue: I6TJC1

Signed-off-by: sunzhe23 <sunzhe23@huawei.com>
2023-04-07 13:26:00 +08:00