[JVM_IR] Fix offsets in constant propagation optimization.
Loads of temporary variables that contain constants are replaced with a copy of the constant. This avoids locals loads and stores. However, the copy of the constant needs to have the offset of the load and not of the original constant. Fixes KT-41963.
This commit is contained in:
committed by
Alexander Udalov
parent
f273edeb8e
commit
78483930bc
+1
-1
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
LineBreakpoint created at stepOverWhenWithInline.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
@@ -35,6 +34,7 @@ stepOverWhenWithInline.kt:63
|
||||
stepOverWhenWithInline.kt:75
|
||||
stepOverWhenWithInline.kt:76
|
||||
stepOverWhenWithInline.kt:75
|
||||
stepOverWhenWithInline.kt:80
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
Reference in New Issue
Block a user