summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2015-04-16 12:57:19 +0100
committerCalin Juravle <calin@google.com>2015-04-16 16:48:25 +0100
commita4f8831d6533e4fe5aed18433099e1130d95a877 (patch)
tree914c97dd322f59b282f01ca5659a960609e0aa0b /compiler/optimizing/codegen_test.cc
parente015a31e509c3f4de8a90b57b77329ba6609ce2f (diff)
Remove duplicates phis created during SSA transformation
When creating equivalent phis we copy the inputs of the original phi which may be improperly typed. This will be fixed during the type propagation but as a result we may have two equivalent phis with the same type for the same dex register. This is correct but generates more code and prevent some optimizations. This CL adds another step in the SSA builder to remove the extra Phi nodes created due to equality operators. The graph checker verifies that for a given dex register not two phis have the same type. Also, replace zero int constant with null constant when we compare a reference against null. Change-Id: Id37cc11a016ea767c7e351575e003d822a9d2e60
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
0 files changed, 0 insertions, 0 deletions