Update counting VR for promotion
For 64-bit it makes sense to compute VR uses together for
int and long because core reg is shared.
Change-Id: Ie8676ece12c928d090da2465dfb4de4e91411920
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
diff --git a/compiler/dex/quick/mir_to_lir.h b/compiler/dex/quick/mir_to_lir.h
index 87509b6..95781fb 100644
--- a/compiler/dex/quick/mir_to_lir.h
+++ b/compiler/dex/quick/mir_to_lir.h
@@ -1635,6 +1635,17 @@
*/
virtual void GenConst(RegLocation rl_dest, int value);
+ /**
+ * Returns true iff wide GPRs are just different views on the same physical register.
+ */
+ virtual bool WideGPRsAreAliases() = 0;
+
+ /**
+ * Returns true iff wide FPRs are just different views on the same physical register.
+ */
+ virtual bool WideFPRsAreAliases() = 0;
+
+
enum class WidenessCheck { // private
kIgnoreWide,
kCheckWide,