Ran
|
Files
89
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
push
github
Prevent CSE of a REF_BASE operand across IR_RETF. Reported by XmiliaH. (cherry-picked from commit e73916d81) The RETF IR has a side effect: it shifts base when returning to a lower frame, i.e., it affects `REF_BASE` IR (0000) (thus, we can say that this IR is violating SSA form). So any optimization of IRs with `REF_BASE` as an operand across RETF IR may lead to incorrect optimizations (see details in the test file). This patch adds rules to the folding engine to prevent CSE across `IR_RETF` for all possible IRs containing REF_BASE. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#9145 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org> Signed-off-by: Igor Munkin <imun@tarantool.org> (cherry picked from commit 804f85a82)
5346 of 5967 branches covered (0.0%)
Branch coverage included in aggregate %.
20500 of 23264 relevant lines covered (88.12%)
699844.68 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|