summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_simplifier_shared.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-09-26 09:15:35 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-09-26 09:15:35 +0000
commit4894cdd8ebd4624f0f09c1545c1bbf7ff0bb5bc3 (patch)
treed2e2cc57dd046e2bd06cb3cc67e2e9f6950dac87 /compiler/optimizing/instruction_simplifier_shared.h
parentd796c61d303424798c8cd35fabb77760255ea2aa (diff)
parent0ebe0d83138bba1996e9c8007969b5381d972b32 (diff)
Merge "ART: Introduce compiler data type."
Diffstat (limited to 'compiler/optimizing/instruction_simplifier_shared.h')
-rw-r--r--compiler/optimizing/instruction_simplifier_shared.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/instruction_simplifier_shared.h b/compiler/optimizing/instruction_simplifier_shared.h
index 31e23833b1..b016a8769e 100644
--- a/compiler/optimizing/instruction_simplifier_shared.h
+++ b/compiler/optimizing/instruction_simplifier_shared.h
@@ -26,10 +26,10 @@ namespace helpers {
inline bool CanFitInShifterOperand(HInstruction* instruction) {
if (instruction->IsTypeConversion()) {
HTypeConversion* conversion = instruction->AsTypeConversion();
- Primitive::Type result_type = conversion->GetResultType();
- Primitive::Type input_type = conversion->GetInputType();
+ DataType::Type result_type = conversion->GetResultType();
+ DataType::Type input_type = conversion->GetInputType();
// We don't expect to see the same type as input and result.
- return Primitive::IsIntegralType(result_type) && Primitive::IsIntegralType(input_type) &&
+ return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) &&
(result_type != input_type);
} else {
return (instruction->IsShl() && instruction->AsShl()->InputAt(1)->IsIntConstant()) ||