OSDN Git Service

Handle catch phis in code sinking.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 20 Apr 2017 14:19:46 +0000 (15:19 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 20 Apr 2017 15:39:43 +0000 (16:39 +0100)
commit13445e7176d67098a5d94754a9d3cd2928616bd8
tree1a2279af45211b5398cf261e71b8700f51bc80b9
parent25009fdd7a5dccc957afc8178ca5d3733f899147
Handle catch phis in code sinking.

When the user of an instruction we want to sink is a catch
phi, we should not look at predecessors (which don't map 1-1
for catch phis), but can only look at its dominator.

bug:37247890
Test: 647-sinking-catch
Change-Id: Ib64bd6f95d3ef45c394137e76819fa8d7d3d960a
compiler/optimizing/code_sinking.cc
test/647-sinking-catch/expected.txt [new file with mode: 0644]
test/647-sinking-catch/info.txt [new file with mode: 0644]
test/647-sinking-catch/smali/TestCase.smali [new file with mode: 0644]
test/647-sinking-catch/src/Main.java [new file with mode: 0644]