diff options
author | David Brazdil <dbrazdil@google.com> | 2015-04-15 16:29:32 +0100 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2015-04-16 11:09:55 +0100 |
commit | 13b4718ecd52a674b25eac106e654d8e89872750 (patch) | |
tree | 34d6efd2cda3ceb233118e4d135c4a897f02ea12 /compiler/optimizing/code_generator_x86.cc | |
parent | da93333d568f3c5bd8eeb58341d10a332e1d42bf (diff) | |
download | art-13b4718ecd52a674b25eac106e654d8e89872750.tar.gz art-13b4718ecd52a674b25eac106e654d8e89872750.tar.bz2 art-13b4718ecd52a674b25eac106e654d8e89872750.zip |
ART: Remove DCHECKs for boolean type
Since bool and int are interchangeable types, checking whether an
input is kPrimBoolean can fail when replaced with 0/1 constant or
a phi. This patch removes the problematic DCHECKs, adds a best-effort
verification into SSAChecker but leaves the phi case empty until a
suitable analysis is implemented.
Change-Id: I31e8daf27dd33d2fd74049b82bed1cb7c240c8c6
Diffstat (limited to 'compiler/optimizing/code_generator_x86.cc')
-rw-r--r-- | compiler/optimizing/code_generator_x86.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_x86.cc b/compiler/optimizing/code_generator_x86.cc index 0cc377cf03..879216d59b 100644 --- a/compiler/optimizing/code_generator_x86.cc +++ b/compiler/optimizing/code_generator_x86.cc @@ -2931,7 +2931,6 @@ void LocationsBuilderX86::VisitBooleanNot(HBooleanNot* bool_not) { } void InstructionCodeGeneratorX86::VisitBooleanNot(HBooleanNot* bool_not) { - DCHECK_EQ(bool_not->InputAt(0)->GetType(), Primitive::kPrimBoolean); LocationSummary* locations = bool_not->GetLocations(); Location in = locations->InAt(0); Location out = locations->Out(); |