commit | 103432f930f7ffe2c2e1d204dbc14e1d2f933c1b | [log] [tgz] |
---|---|---|
author | Christoffer Quist Adamsen <christofferqa@google.com> | Fri May 03 15:17:23 2019 +0200 |
committer | Christoffer Quist Adamsen <christofferqa@google.com> | Fri May 03 15:17:23 2019 +0200 |
tree | d87d0b3ce53aca7529996b2f170da0c1e7e033b5 | |
parent | 79b6a97fa25e64f77f71185ef68bdea3ebc89fa6 [diff] |
Use empty CallSiteInformation when shrinking is disabled Bug: 131885799 Change-Id: Ifd7368b9c6bcd26fee4b4882b663c12db6d29b24
diff --git a/src/main/java/com/android/tools/r8/ir/conversion/CallGraph.java b/src/main/java/com/android/tools/r8/ir/conversion/CallGraph.java index a37e32a..4d46084 100644 --- a/src/main/java/com/android/tools/r8/ir/conversion/CallGraph.java +++ b/src/main/java/com/android/tools/r8/ir/conversion/CallGraph.java
@@ -143,7 +143,10 @@ } CallSiteInformation createCallSiteInformation(AppView<AppInfoWithLiveness> appView) { - return new CallGraphBasedCallSiteInformation(appView, this); + // Don't leverage single/dual call site information when we are not tree shaking. + return appView.options().isShrinking() + ? new CallGraphBasedCallSiteInformation(appView, this) + : CallSiteInformation.empty(); } /**