diff options
author | David Brazdil <dbrazdil@google.com> | 2015-05-07 09:59:30 +0100 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2015-05-13 10:02:07 +0100 |
commit | e8ff50df01c89e1b5264a5a900cfebdde87a9b44 (patch) | |
tree | a2c0cc80afcf4cbce0f2293e09c49cee98e5a4bb /test/485-checker-dce-loop-update/src | |
parent | 6185884829333f0035de0488b1c4a2e84c7dd38b (diff) | |
download | art-e8ff50df01c89e1b5264a5a900cfebdde87a9b44.tar.gz art-e8ff50df01c89e1b5264a5a900cfebdde87a9b44.tar.bz2 art-e8ff50df01c89e1b5264a5a900cfebdde87a9b44.zip |
ART: Rediscover loops after deleting blocks in DCE
The way DCE currently updates loop information does not cover all
cases. This patch removes the logic, resets loop information of live
blocks to pre-SSA state and reanalyzes the affected loops.
Change-Id: I0b996a70235b95a8db0de9a23a03f71db57a21b8
(cherry picked from commit a4b8c21dae70ae34aee13628632c39a675c06022)
Diffstat (limited to 'test/485-checker-dce-loop-update/src')
-rw-r--r-- | test/485-checker-dce-loop-update/src/Main.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/485-checker-dce-loop-update/src/Main.java b/test/485-checker-dce-loop-update/src/Main.java new file mode 100644 index 0000000000..6bfe08b0d3 --- /dev/null +++ b/test/485-checker-dce-loop-update/src/Main.java @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.lang.reflect.Method; + +public class Main { + + // Workaround for b/18051191. + class InnerClass {} + + public static void main(String[] args) throws Exception { + return; + } +} |