[JVM_IR, IR] Remove more needless temporary variables.

Avoid using a separate origin for temporary variables introduced
for for loops. That doesn't add anything and gives one more case
for optimizations to deal with.

Extend the JVM specific optimizations to remove temporary
variables to deal with more cases encountered in for loops
lowering.
This commit is contained in:
Mads Ager
2019-08-29 12:52:03 +02:00
committed by max-kammerer
parent e5a1040dbd
commit 90a37617a4
7 changed files with 29 additions and 24 deletions
@@ -9,5 +9,5 @@ fun test() {
// 0 hasNext
// 0 nextChar
// 0 INVOKEINTERFACE
// 1 ISTORE 4
// 1 ILOAD 4
// 1 charAt \(I\)C
// 1 length \(\)I